logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <ralph.go...@dslextreme.com>
Subject Re: Translating log levels
Date Tue, 19 May 2015 17:50:51 GMT
I am assuming you want the Level in the output to say WARN instead of ERROR - otherwise simple
filtering at the Logger would get you the output.

You can use the RewriteAppender to modify the Level to what you want.


> On May 19, 2015, at 8:10 AM, Mikael Ståldal <mikael.staldal@magine.com> wrote:
> Is it possible to translate log levels in the configuration.
> I have some 3rd party libraries who log stuff on too high level, so I would
> need a way to say that logging from "com.somecompany.funlibrary" on level
> ERROR should be translated to WARN.
> -- 
> [image: MagineTV]
> *Mikael Ståldal*
> Senior backend developer
> *Magine TV*
> mikael.staldal@magine.com
> Regeringsgatan 25  | 111 53 Stockholm, Sweden  |   www.magine.com
> Privileged and/or Confidential Information may be contained in this
> message. If you are not the addressee indicated in this message
> (or responsible for delivery of the message to such a person), you may not
> copy or deliver this message to anyone. In such case,
> you should destroy this message and kindly notify the sender by reply
> email.

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message