We should adapt Level to use some of the enum techniques used in o.a.j.commons.lang.Enum and
com.dautelle.util.Enum from JADE.
This is listed in my todo list as a priority item.
At 08:18 PM 6/3/2004, you wrote:
You would need to write a custom Level class and XmlDecoder would need to support a parameter allowing you to specify a custom Level implementation.
This change would display the custom level in Chainsaw (if you used text and not icons), but expressions like LEVEL > MYCUSTOMLEVEL won't work (they'll all evaluate to DEBUG). I haven't looked into how much work it would be to support this.
Scott
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 7:32 AM To: [EMAIL PROTECTED] Subject: Displaying custom log level in Chainsaw v2
Hello,
I'm using Chainsaw v2 ( ) to receive and display log messages that come from a C++ program (I use log4cplus 1.0.1 with an inhouse written socket XML appender). I use a custom log level (name="CRITICLA", numeric value 40001) in log4cplus in a log statement. The value is properly embedded in the XML message and sent to Chainsaw. Chainsaw does, however, display the log message tagged with a "DEBUG" level. It seems that Chainsaw doesn't understand custom log levels without some configuration. What would I need to do to be able to view custom log levels in chainsaw?
Thanks loads for any hints! Johannes
-- Ceki G�lc�
For log4j documentation consider "The complete log4j manual"
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
