logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thierry Lam" <...@pcigeomatics.com>
Subject RE: Different level messages for console and logfile
Date Fri, 22 Apr 2005 16:09:07 GMT
Can anyone give an example on how to apply filters to the appenders?


-----Original Message-----
From: thomas.hawker@oocl.com [mailto:thomas.hawker@oocl.com] 
Sent: Friday, April 22, 2005 12:06 PM
To: log4cxx-user@logging.apache.org
Subject: RE: Different level messages for console and logfile

Sorry, I don't have time to go into the details, but you run everything
at the debug level and apply filters to the appenders.

Tom Hawker
Home    408-274-4128
Office  408-576-6591
Mobile  408-835-3643

-----Original Message-----
From: Thierry Lam [mailto:lam@pcigeomatics.com] 
Sent: Friday, April 22, 2005 08:44 AM
To: Log4CXX User
Subject: Different level messages for console and logfile

For the following given example of the documentation page:

log4j.rootLogger=DEBUG, A1

# 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.

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?


Email from OOCL is confidential and may be legally privileged.  If it is
not intended for you, please delete it immediately unread.  The internet
cannot guarantee that this communication is free of viruses,
interception or interference and anyone who communicates with us by
email is taken to accept the risks in so doing.  Without limitation,
OOCL and its affiliates accept no liability whatsoever and howsoever
arising in connection with the use of this email.  Under no
circumstances shall this email constitute a binding agreement to carry
or for provision of carriage services by OOCL, which is subject to the
availability of carrier's equipment and vessels and the terms and
conditions of OOCL's standard bill of lading which is also available at

View raw message