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: One file for every thread
Date Thu, 15 Jul 2004 18:55:54 GMT
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:ddebenedictis@sogei.it] 
Sent: Thursday, July 15, 2004 8:38 AM
To: Log4J Users List
Subject: RE: One file for every thread


 

> From: Stephen Pain [mailto:stephen.pain@db.com]
>
> 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: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


---------------------------------------------------------------------
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