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 "Hazejager, S. - SPLXE" <Sv...@klm.com> on 2003/03/03 11:51:19 UTC
Multiple appenders with differing levels?
Hi,
I'm looking for a (simple) solution to the following problem.
We would like to be able to configure one logging level for our entire
application, with output going to one file (intended to be read by
developers and maintenance). In addition, we would like FATAL errors to go
to a separate file (for operations). No lower levels should be logged, even
if the global level is set to DEBUG.
Is this possible with only one configured logger (i.e. the root logger)?
Thanks,
Sven Hazejager
--
Sven Hazejager
SPL/XE70 De UnIT
06 22465887
**********************************************************************
For information, services and offers, please visit our web site: http://www.klm.com. This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, and may be unlawful. If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete transmission of this e-mail or any attachments, nor responsible for any delay in receipt.
**********************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org
Re: Multiple appenders with differing levels?
Posted by Ferenc Toth <ft...@eu.infobal.com>.
On Mon, 3 Mar 2003 11:51:19 +0100, Hazejager, S. - SPLXE wrote:
>Hi,
>
>I'm looking for a (simple) solution to the following problem.
>We would like to be able to configure one logging level for our entire
>application, with output going to one file (intended to be read by
>developers and maintenance). In addition, we would like FATAL errors to go
>to a separate file (for operations). No lower levels should be logged, even
>if the global level is set to DEBUG.
>Is this possible with only one configured logger (i.e. the root logger)?
Use two appenders. Attach a simple filter to the "fatal" appender that
filters log4 with only fatal level.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org