A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Getting MEAN with Mongo, Express, Angular, and Node
this week in the
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:WARN No appenders could be found for logger
Log4j ...selective logging to appenders
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-2015