File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Other Open Source Projects
log4j: how to redirect log messages to different appenders
Joined: May 05, 2008
May 01, 2009 14:30:21
I have console and file appender both defined in log4j.xml and I want to
write some messages to console appender and some to the file appender.
How do I do that in the code ?
Where do I specify which appender the message should go to?
Thanks a lot.
Joined: Jun 24, 2003
May 05, 2009 08:15:32
Do a search on this forum, this question has been answered many times before
Cheers, Martijn -
The Well-Grounded Java Developer book!
I agree. Here's the link:
subject: log4j: how to redirect log messages to different appenders
Log4j and appenders
Log4j ...selective logging to appenders
log4j:WARN No appenders could be found for logger
Struck thread and deadlock while getting connection
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014