Use this logFormat: TIMESTAMP LEVEL*(THREAD) [CLASS] MESSAGE I had to use LEVEL* because your pattern layout forces the level width to some number of characters, padding with spaces (incidentally, this means everything shows up as DEBUG).
Also, your log file doesn't have a - between the class (should that be logger instead of class, since you don't have a logger field specified in the pattern?) and message. Scott -----Original Message----- From: Cook, Lori A [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 12, 2006 12:54 PM To: Log4J Users List Subject: RE: What is the Chainsaw format for message spanning many lines. You got it...Unfortunately I can't give you a real world example. But here's a sample. 2006-03-30 09:52:09,120 INFO ([impl:3]_3:) [ Factory] info message 2006-03-30 09:52:09,120 DEBUG ([impl:3]_3:) [ Strategy] debug message 2006-03-30 09:52:09,322 ERROR (ulerThread:) [ ErrorLogger] error message. org.xyz.impl.jdbcjobstore.LockException: Failure obtaining db row lock: [-4004] (at 15): Unknown table name:TABLE_LOCKS [See nested exception: com.abc.jdbc.exceptions.DatabaseException: [-4004] (at 15): Unknown table name:TABLE_LOCKS] at org.xyz.impl.jdbcjobstore.StdRowLockSemaphore.obtainLock(StdRowLockSemap hore.java:155) at org.xyz.impl.jdbcjobstore.JobStoreTX.acquireNextTrigger(JobStoreTX.java: 1214) at org.xyz.core.xyzSchedulerThread.run(xyzSchedulerThread.java:233) * Nested Exception (Underlying Cause) --------------- com.abc.jdbc.exceptions.DatabaseException: [-4004] (at 15): Unknown table name:TABLE_LOCKS at com.abc.jdbc.packet.ReplyPacket.createException(ReplyPacket.java:71) at com.abc.jdbc.ConnectionDB.throwSQLError(ConnectionSapDB.java:824) at com.abc.jdbc.ConnectionDB.execute(ConnectionSapDB.java:483) ...with many more lines showing the stack trace. So the main lines are in the form TIMESTAMP LEVEL (THREAD) [CLASS] - MESSAGE The question is how to process the stack trace. -----Original Message----- From: Scott Deboy [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 12, 2006 12:28 PM To: Log4J Users List Subject: RE: What is the Chainsaw format for message spanning many lines. LogFilePatternReceiver can process logging events with multiple lines in the message. Reply with a few example events and I'll give you a logFormat that can process them. Scott -----Original Message----- From: Cook, Lori A [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 12, 2006 9:50 AM To: [email protected] Subject: What is the Chainsaw format for message spanning many lines. In the archives this question was asked but I didn't see an answer. So how do you specify the format for a message that spans may lines? The basic line is TIMESTAMP LEVEL (THREAD) [CLASS] - MESSAGE MESSAGE MESSAGE.... How do you define this for the LogFilePatternReceiver? Or can you? Thanks much for any help. Lori A. Cook --------------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
