If you decide to go in this direction, see
http://www.ingrid.org/jajakarta/log4j/jakarta-log4j-1.1.3/docs/deepExtension
.html

This example is slightly more complicated than yours.  The document presents
a solution where various values are passed to the constructor of the
extended category factory, which you won't need.  You won't need to extend
Category, CategoryFactory, LoggingEvent, or PatternConverter.  Your values
are known internally by Log4j, and thus I think you can get away with only
extending PatternLayout and PatternParser.  We've done something similar.

Mike




-----Original Message-----
From: Jean-Michel Auguste [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003 9:48 AM
To: [EMAIL PROTECTED]
Subject: 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  

-------------------------------------------------------------------------------
This message and any included attachments are from Siemens Medical Solutions 
Health Services Corporation and are intended only for the addressee(s).  
The information contained herein may include trade secrets or privileged or 
otherwise confidential information.  Unauthorized review, forwarding, printing, 
copying, distributing, or using such information is strictly prohibited and may 
be unlawful.  If you received this message in error, or have reason to believe 
you are not authorized to receive it, please promptly delete this message and 
notify the sender by e-mail with a copy to [EMAIL PROTECTED]  Thank you

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to