You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2006/02/08 22:11:01 UTC

DO NOT REPLY [Bug 38580] - Reading log files using Chainsaw

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38580>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38580





------- Additional Comments From sdeboy@iname.com  2006-02-08 22:10 -------
LogFilePatternReceiver doesn't use the 'patterns' used by PatternLayout - it
uses keywords.  

Read the JavaDoc for LogFilePatternReceiver for more information:
http://svn.apache.org/viewcvs.cgi/logging/log4j/trunk/src/java/org/apache/log4j/varia/LogFilePatternReceiver.java?view=markup

There is also a sample receiver configuration available from Chainsaw's
'Welcome' tab - it contains a sample LogFilePatternReceiver configuration section.  

LogFilePatternReceiver can read multiple lines, but I'm not sure it would match
your patternLayout correctly (it would probably match the last line of the text
before the next log message).  

I'd suggest changing your conversionPattern to this:
log4j.appender.FILE.layout.ConversionPattern=%d %p %c [%t] [%x] - %m%n  

And then use this as your logFormat:
TIMESTAMP LEVEL LOGGER [THREAD] [NDC] - MESSAGE

Notice I changed the level to %p - if you truncate the level name in the log
file, Chainsaw won't recognize it.

Scott

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org