3 messages in org.apache.logging.log4j-userRE: Displaying custom log level in Ch...
FromSent OnAttachments
Joha...@CERNJun 3, 2004 7:31 am 
Scott DeboyJun 3, 2004 11:17 am 
Ceki GülcüJun 3, 2004 11:43 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: Displaying custom log level in Chainsaw v2Actions...
From:Scott Deboy (sde@comotivsystems.com)
Date:Jun 3, 2004 11:17:46 am
List:org.apache.logging.log4j-user

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: Johannes.Gutleber@CERN [mailto:Joha@cern.ch] Sent: Thursday, June 03, 2004 7:32 AM To: log4@jakarta.apache.org 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