I think cvs has an example class for capturing system out and err. I
know I have seen an example somewhere.
I think -Dlog4j.debug=true always generates output to system out.
Besides that I am not sure what else would go to system out (unless
using a ConsoleAppender).
On 7/14/05, Mike Wannamaker
rsday, July 14, 2005 10:06 PM
To: Log4J Users List
Subject: RE: Log4J: System.out and System.err
I don't want to send to, I want to capture. We have applications that
are
writing to System.out and System.err and I want to capture those and log
them to a Logger.
What I've done is this:
Users List
Subject: Re: Log4J: System.out and System.err
Don't know about capturing System.out or System.err, but the
ConsoleAppender can be created with the property Target set to
System.out or System.err for logging to the desired stream
--
Javier Go
Don't know about capturing System.out or System.err, but the
ConsoleAppender can be created with the property Target set to
System.out or System.err for logging to the desired stream
--
Javier Gonzalez Nicolini
-
To unsubscribe
Is there a way to tell log4J to capture System.out or System.err? Also it
looks like log4j at certain levels of logging also logs to the
System.err/System.out can anyone confirm this? Possibly through something
called a QuietWriter?
TIA
--ekiM
---