Logging output in Eclipse WTP server

隐身守侯 提交于 2020-02-13 05:01:07

问题


I'm running Eclipse 3.5 with Tomcat (integrated from WTP) and I want to see the output logs in txt other than just the console

Cant find it in my eclipse/workspace nor in the local Tomcat 6 installation directory

Any clues how to enable these?

I've also enabled org.apache.catalina.valves.RequestDumperValve and the output scrolls by on console which I want to see in txt


回答1:


In the Servers tab:

  1. Double-click on the Tomcat Server.
  2. Click on "Open launch configuration".
  3. Click on the "Common" tab.
  4. Check the "File" checkbox and specify a file.
  5. Restart the Tomcat server.

This is based on codesta's answer: https://stackoverflow.com/a/5045247/112335




回答2:


Check you Eclipse installation dir - logs are sometimes hiding in there.

Hope this helps.




回答3:


ps aux | grep tomcat

Check for the value of -Dwtp.deploy Go to that directory and you will find logs folder, web-apps etc there.




回答4:


It probably depends on your logger configuration and other technologies you use. They should be where other answers say they are but for me this was not the case. Finding them was a real PITA, but I found them on the same drive in which the Tomcat (or Eclipse ?) was running under:

THE_SAME_DRIVE_AS_YOUR_TOMCAT\tomcat\logs


来源:https://stackoverflow.com/questions/4591702/logging-output-in-eclipse-wtp-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!