Eclipse Tomcat 日志文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6799602/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 16:41:39  来源:igfitidea点击:

Eclipse Tomcat log files

eclipsefiletomcatlogging

提问by user810430

I find the similar question - answer

我找到了类似的问题 -答案

But it doesn't help any. Near .metadata I didn't find any files *.log. May be Tomcat when run from Eclipse doesn't write log files? Thanks.

但它没有任何帮助。在 .metadata 附近我没有找到任何文件 *.log。从 Eclipse 运行时可能是 Tomcat 不写入日志文件?谢谢。

回答by Hansa

Look in workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\logs

在看 workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\logs

Source: Logging output in Eclipse WTP server

来源:Eclipse WTP 服务器中的日志输出

回答by prusswan

Yes. If you want the logs like those for a default Tomcat 6 installation started using startup.bat, you need to add the following JVM arguments:

是的。如果您希望使用 startup.bat 启动类似默认 Tomcat 6 安装的日志,您需要添加以下 JVM 参数:

-Dcatalina.base="C:\Tomcat6"
-Dcatalina.home="C:\Tomcat6"
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file="C:\Tomcat6\conf\logging.properties"

Also add C:\Tomcat6\bin and C:\Tomcat6\lib to the classpath if necessary

如有必要,还将 C:\Tomcat6\bin 和 C:\Tomcat6\lib 添加到类路径

回答by rajeev krishna singh

Go to server view --> double click on server --> In Overview tab you will find server locations click on this to extend part --> In this part you will find server path --> In server path you will find logs folder In that folders log files will be available

转到服务器视图 --> 双击服务器 --> 在概览选项卡中,您将找到服务器位置,单击此扩展部分 --> 在此部分中,您将找到服务器路径 --> 在服务器路径中,您将找到日志文件夹在该文件夹中,日志文件将可用