7

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

xrcwrn
  • 5,339
  • 17
  • 68
  • 129
shinynewbike
  • 2,334
  • 5
  • 28
  • 42

4 Answers4

11

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

Community
  • 1
  • 1
Saulo Silva
  • 1,219
  • 1
  • 20
  • 37
2

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

Hope this helps.

javamonkey79
  • 17,443
  • 36
  • 114
  • 172
  • 1
    Yup - I've seen some in `Eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\logs\` – JoseK Jan 04 '11 at 08:34
  • no, i checked that already as my question says. there is one access log but no error logs, and no requestdumper output in any log. On a Tomcat outside of Eclipse - this usually appears in the catalina log. – shinynewbike Jan 04 '11 at 08:47
  • @shiny - I'm not talking about your workspace; @JoseK is. I am asking if you checked where your Eclipse folder itself lives, there are often logs in **both** locations :) – javamonkey79 Jan 04 '11 at 08:51
1
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.

Krishan Subudhi
  • 376
  • 3
  • 18
0

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
Christophe Roussy
  • 16,299
  • 4
  • 85
  • 85