2

is it possible to open an existing log file generated by log4j in my j2ee application using apache chainsaw, without using any special configurations?

I am not sure how to do this.

Thanks, Ayusman

Bergi
  • 630,263
  • 148
  • 957
  • 1,375
Ayusman
  • 8,509
  • 21
  • 79
  • 132

1 Answers1

3

Yes, use the latest developer snapshot of Apache Chainsaw, available here: http://people.apache.org/~sdeboy

When the Chainsaw configuration dialog is displayed, choose the 'process a log file' option, click the 'open file' link to browse to your log file and then change the 'log file format' to MESSAGE (you can specify a complete format, but this will at least get your messages into Chainsaw quickly).

For information on how to specify the format completely, see the VFSLogFilePatternReceiver javadoc here: http://logging.apache.org/chainsaw/apidocs/org/apache/log4j/chainsaw/vfs/VFSLogFilePatternReceiver.html

Scott
  • 1,728
  • 11
  • 11
  • thanks scott. Though I have not got it working 100%, still something go with. Atleast looks better than 2.0 alpha version. – Ayusman Aug 17 '11 at 10:22