Thank you folks for your reply..
I can now generate log file
In reply to Re^2: Creating log files for errors and warnings by tej in thread Creating log files for errors and warnings by tej