The log directory is specified as past of the UPSShell.exe command you pass through.
Here is a good KM that explains this: How to Use the UPSShell.EXE To Launch a Custom Script for FDM (Doc ID 1308568.1)
A bit more detail below on what you are specifically looking for:
Note the LogDirectory there.
Hope this helps!
Sorry for the delayed reply..I was trying to figure out options for this but could not do so.
The logs directory is showing errors in case of syntax errors, but if validate fails..for eg...no error is recorded in log.
Can you let me know how can we have error lgenerated for these kind of errors.
Also, I'm loooking for a way where if one script fails batch shoud not go to the other script.
Thanks in advance
Can these errors be seen in the standard Batch reports? If these are the normal validation type errors, then you can write some code into an apporpriate event script to write the details to your own log if necessary.
Without knowing your environment, it is difficult to comment in detail, but if you need to control the execution of a subsequent batch script, then you may need to maintain a flag somewhere and maintain it as part of the event scripts.