To elaborate on how you could use Chainsaw to quickly view
thread-specific information:
Use a logFilePatternReceiver to load the events from the log file into
Chainsaw. The events will be loaded into a single tab in the UI.
At that point, you have a couple of options to get at the
thread-specific information:
1. display events associated with each unique thread in separate tabs
- Change the tab-routing expression to THREAD, which will create a
separate tab for each unique thread
(this may be overkill if you have apps with a lot of different
threads):
Go to the view menu, select 'application-wide preferences', change
the 'tab identifier' field to 'THREAD'
2. filter the events in the existing tab:
- build a display filter expression (see the tutorial for
information on building expressions):
in the 'refine focus' field, enter: thread == 'some thread name'
Single-quotes are only required if it's a multi-word operand. You
can quickly build this expression by right-clicking in
the 'thread' cell of an event you are interested in, and selecting
the 'set refine focus field' context menu option
Hope this helps
Scott
-----Original Message-----
From: DE BENEDICTIS DAVIDE [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 8:38 AM
To: Log4J Users List
Subject: RE: One file for every thread
> From: Stephen Pain [mailto:[EMAIL PROTECTED]
>
> chainsaw also makes it easy to split a log into separate threads... as
> well as providing lots of other useful features!
>
> http://logging.apache.org/log4j/docs/chainsaw.html
Thanks Stephen
---------------------------------------------------------------------
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]