logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thierry Lam" <...@pcigeomatics.com>
Subject Different level messages for console and logfile
Date Fri, 22 Apr 2005 15:43:32 GMT

For the following given example of the documentation page:

log4j.rootLogger=DEBUG, A1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout

# Print the date in ISO 8601 format
log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

# Print only messages of level WARN or above in the namespace com::foo.
log4j.logger.com.foo=WARN


Is it possible to print messages of a specific logger object of level
WARN to the console and messages of level DEBUG of that same specific
logger object to a logfile? If so, how do we do it?

Thanks
Thierry


Mime
View raw message