Tomcat 7日志文件的差异 [英] Tomcat 7 log files differences

查看:158
本文介绍了Tomcat 7日志文件的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在tomcat7日志目录中生成了3种类型的日志文件:

There are 3 types of log files generated in tomcat7 logs directory:


  • catalina。[date] .out | log

  • localhost。[date] .out | txt

  • localhost_access_log。[date] .txt

我有一些基于文件内容的理论,但我想得到可靠的答案。我想知道:

I have some theories based on the content of the files, but I would like to get reliable answer. I would like to know:


  • 为什么有多个文件扩展名(out,log,txt)

  • 每个文件包含什么以及它们之间有什么区别

推荐答案

一个接一个一个:

这是输出到Tomcat进程的STDOUT的内容。

This is the content of the output to STDOUT of the Tomcat process.

这是 <的输出code> AccessLogValve ,(最有可能)在 server.xml中配置

这是Tomcat的输出日志框架。这是在 $ {catalina.base} /conf/logging.properties 中配置的。

This is the ouput from Tomcat's logging framework. This is configured in ${catalina.base}/conf/logging.properties.

您的其他文件 localhost.out | txt 来自其中一个来源。我怀疑 localhost.txt 可能来自错误配置的 AccessLogValve ,它输出到 localhost。旋转到 localhost_access_log之前的txt 。[日期] .txt

Your other files, localhost.out|txt come from one of these sources. I suspect that localhost.txt might come from a misconfigured AccessLogValve, which outputs to localhost.txt before rotating to localhost_access_log.[date].txt.

它还可以是你有一个错误配置的 logging.properties localhost 主机输出日志 txt 文件而不是 log 文件。

It could also be that you have a misconfigured logging.properties that outputs logs from the localhost Host to a txt file rather than a log file.

这篇关于Tomcat 7日志文件的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆