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 19:11:21 GMT
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: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


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