开发者

Opening existing log file in apache chainsaw

开发者 https://www.devze.com 2023-03-26 10:05 出处:网络
is it possible to open an existing log file generated by log4j in my j2ee application using apache 开发者_运维技巧chainsaw, without using any special configurations?

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

精彩评论

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

关注公众号