logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James A. N. Stauffer" <stauffer.ja...@gmail.com>
Subject Re: I need to make logging in a complete application
Date Mon, 12 Jan 2009 21:52:51 GMT
Search and replace:
"System.out.println(" -> "logger.debug("
Then add a logger definition to each base class.

James A. N. Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/



On Fri, Dec 26, 2008 at 8:28 AM, Ariel <isaacrc82@gmail.com> wrote:
> Hi everybody:
>
> I am newbie with log4j, I have made a distributed and multithreaded
> application where all the logging is made displaying de mesagges in the
> console using System.out.println. Now I want to redirect those messages to a
> file to have a trace of all the messages. Is there anyway to telling log4j
> that all the System.out messages write them into a file ???
> Please could you help me ?
> Regards
> Ariel
>

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


Mime
View raw message