I forgot to mention a third option:

You can create a new tab pane based on existing existing events (similar
to a database view).  New events will be routed to both the source pane
and the new pane:
 - Go to the view  menu, select 'create custom expression LogPanel', and
specify the expression: THREAD == 'some thread name'

A new tab pane will be created containing the events matching the
expression, regardless of which source pane they came from (a good way
to combine events from multiple sources into a single panel without
having to modify the tab identifier routing mechanism).

Also, anywhere you can define an expression (color filter, find, refine
focus, create custom expression logpanel), you can press ctrl-space or
right-click the mouse to display a menu that can help build the
expressions.

Scott



-----Original Message-----
From: Scott Deboy 
Sent: Thursday, July 15, 2004 11:56 AM
To: Log4J Users List
Subject: RE: One file for every thread


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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to