You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Benjamin David <bd...@gmail.com> on 2005/08/10 12:45:19 UTC

Redirecting stderr and stdout through log4j

Hi,

I am currently using log4j in an application to log my debug, info, 
error , etc messages to a file and all is fine, but I also need to log
the output from stderr and stdout to the same file.
I would like to take the stderr and stdout streams and feed them into
log4j so they are sent to the same file than my debug, info, error
messages, or something to that effect.

Is there any way of doing this ?
Thanks,

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org