LogFilePatternReceiver can process events with multiple lines.

Include a few entries from your log and I'll let you know what logFormat to use.

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: Gert Lokhorst [mailto:[EMAIL PROTECTED]
Sent: Mon 3/6/2006 8:18 AM
To: Log4J Users List
Subject: Configuring chainsaw
 
Hi,

I am new to this list so please accept my apologies for asking questions that 
are already in some FAQ that I am not aware of..

My problem is that the logfile I get has a structure where the message is 
spread over multiple lines. I have tried to identify this by using square 
brackets but that does seem to be enough!

Sample message:
[ZZ Core connected to remote services...
host: yyyy13.xxxx.com
port: 8561
repository: zbcd
deployment: Services
]

The configuration file is like:

  <plugin name="LogFileReceiver"
        class="org.apache.log4j.varia.LogFilePatternReceiver">
     <param name="fileURL"
                value="file:///home/chainsaw/chainsaw.log"/>
     <param name="timestampFormat" 
                value="yyyy-MM-dd HH:mm:ss,SSS"/>
     <param name="logFormat" 
       value="TIMESTAMP [LEVEL] LOGGER - CLASS - METHOD [MESSAGE]"/>
     <param name="name" 
                  value="core"/>
     <param name="tailing" 
                  value="true"/>
   </plugin>


Help is appreciated..


cheer,
gert 


---------------------------------------------------------------------
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