What tool is useful for reading log4j log files?

I am looking for a text editor to read log4j log files that can automatically select lines according to the streams that logged them. For example, all lines that include [pool-1-thread-1] will be colored yellow, and all lines containing [pool-1-thread-2] will be colored green. This may be available as a more general selection function in accordance with the contents of some correspondence to a regular expression.

What tools support this feature?

If you know a way that I don't know about, do it in EditPLus or UltraEdit - even better.

EDIT: My files are plain text (not XML) and I cannot change it.

+7
text-editor log4j
source share
4 answers

You can try OtrosLogViewer . It can emit events based on String / regex or java code. Take a look at this screenshot: scrennshot

Disclaimer I am the author of OtrosLogViewer

+8
source share

Chainsaw V2 - analyzes regular text log files (using LogFilePatternReceiver or VFSLogFilePatternReceiver - see javadoc in the Chainsaw help menu) and supports colorizing strings based on user expressions (you can assign a color to all records matching the expression 'thread == pool-1-thread -2 ').

With the latest version (svn HEAD), you can also -annotate- the log file (an editable column that allows you to enter notes about the log). Then you can save this log file (as xml) and download it later, and your annotations are saved.

+1
source share

You can enter XML files and allow them to be parsed using Logpool

You can get documentation here (http://ovh.dl.sourceforge.net/project/log4jpool/readme.pdf)

+1
source share

Apache Chainsaw may come in handy. This is a special Log4j viewer written by members of the Log4j team. Please note that this is not an editor, but may be useful.

0
source share

All Articles