Hi,
Thanks for your quick answer.
I'll explain a little bit more my problem.
I'm using 3 different appenders : JDBCAppender, SocketAppender,
DailyRollingFileAppender.
I use a patternLayout to insert informations in my DB and in my log file.
For example the query for the DB looks like this :
INSERT INTO log
VALUES (null,'%p','%d{yyyy-MM-dd
HH:mm:ss}','%c','%m',logger,thread,ndc,method,file,line,%X{hostName},%X{IP},%X{state})"/>
hostName, Ip, state are informations added in my application using
MDC and it works fine.
In Chainsaw I'd like to display those informations in separated columns.
I'm using a CustomDbReceiver and a SocketReceiver.
Is it possible do that and if yes how can I do that?
Thanks.
Max
2006/9/13, Scott Deboy <[EMAIL PROTECTED]>:
Columns are automatically created in Chainsaw when a receiver sees an event
containing an MDC entry or an event property.
If you are using (VFS)LogFilePatternReceiver to process a log file generated
using fileappender, you can specify the MDC entries in your conversion pattern
on the fileappender, and specify those MDC entries in the filepatternreceiver
using 'PROP(KEYNAME)' in the logformat.
Chainsaw V2 SocketReceiver may be able to receive events generated by log4j 1.2
SocketAppender - for a long time the serialization mechanism was broken if the
log4j 1.2-generated event contained MDC or location info...that may be fixed -
I haven't tested it recently.
Scott Deboy
COMOTIV SYSTEMS
111 SW Columbia Street Ste. 950
Portland, OR 97201
Telephone: 503.224.7496
Cell: 503.997.1367
Fax: 503.222.0185
[EMAIL PROTECTED]
www.comotivsystems.com
-----Original Message-----
From: max bidbon [mailto:[EMAIL PROTECTED]
Sent: Tue 9/12/2006 2:47 AM
To: [email protected]
Subject: Chainsaw Add Column
Hi all,
I'm using log4j 1.2.13 and Chainsaw V2.
I'd like to display more informations Chainsaw's events Panel.
Is it possible to add column to the view?
If yes, how can I do that?
Thanks in advance.
Max
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]