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


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


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

Reply via email to