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 Jean-Michel Auguste <au...@yahoo.fr> on 2003/02/18 15:47:40 UTC
New Pattern Layout
Hi,
I'm managing to add a new pattern layout (%s) in order to add a severity number associated to the level of the message.
For instance, when a logging message of level INFO is appended, I would like the severity set to 4, when a logging message of level FATAL
is appended, I want a number 1 for severity.
Which Log4J classes should I extend to accomplish that ?
Any sample would be appreciated
Thanks for your help
Re: New Pattern Layout
Posted by Ceki Gülcü <ce...@qos.ch>.
I plan to extend PatternLayout to accept new pattern specifiers (e.g. %s)
as described in
http://www.qos.ch/logging/PatternLayout.html
You are welcome to beat me to it.
At 15:47 18.02.2003 +0100, you wrote:
>Hi,
>I'm managing to add a new pattern layout (%s) in order to add a severity
>number associated to the level of the message.
>For instance, when a logging message of level INFO is appended, I would
>like the severity set to 4, when a logging message of level FATAL
>is appended, I want a number 1 for severity.
>Which Log4J classes should I extend to accomplish that ?
>Any sample would be appreciated
>
>Thanks for your help
--
Ceki
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org