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 James Stauffer <st...@gmail.com> on 2006/07/14 01:15:49 UTC
logger and appender level conflicts
How can I setup logging for the following?
com.package.class1 debug to PackageAppender
com.package.class2 info to PackageAppender
root debug to DebugAppender (including all messages from com.package)
Because PackageAppender needs to get debug messsages I can't set the
threshold. Therefore I should set the level on com.package.class2 to
info. But that will prevent debug messages from com.package.class2
from going to DebugAppender.
The only idea I have is to is to make 2 pacakge appenders (one with an
info threshold) and make them both SocketAppenders so the receiver can
write logs from those 2 appenders to 1 file. Would it be easier to
use an appender filter for this?
--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org