Logging output in Eclipse WTP server

2019-02-09 18:22发布

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

4条回答
老娘就宠你
2楼-- · 2019-02-09 18:40
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.

查看更多
Bombasti
3楼-- · 2019-02-09 18:47

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

查看更多
4楼-- · 2019-02-09 18:55

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
查看更多
Root(大扎)
5楼-- · 2019-02-09 19:05

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

Hope this helps.

查看更多
登录 后发表回答