logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Deboy" <sde...@comotivsystems.com>
Subject RE: Configuring chainsaw
Date Mon, 06 Mar 2006 17:44:28 GMT
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

sdeboy@comotivsystems.com

www.comotivsystems.com



-----Original Message-----
From: Gert Lokhorst [mailto:gert.lokhorst@planet.nl]
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: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org




Mime
View raw message