开发者

Opening existing log file in apache chainsaw

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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜