Meyer, Dave skrev  den 26-07-2008 00:23:

Any help would be greatly appreciated. My program is logging to a file and any exceptions thrown are disappearing. I am running on Linux. The only way I can see the exception is to run the application from the command line. It's like the log4j is not intercepting the stderr messages. It is only capturing stdout messages. How do I fix this?

From your description it sounds to me as you are using the "program > file" mechanism to capture messages. If so, you can use the sh mechanism to redirect standard error also with "program > file | 2>&1". See http://www.dsj.net/compedge/shellbasics1.html for more information.

To deal with your program exceptions I suggest you have a try-catch(Throwable) in your main-method. You can then log them properly.

--
 Thorbjørn
|

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to