Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logging output in Eclipse WTP server

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

like image 639
shinynewbike Avatar asked Jan 04 '11 08:01

shinynewbike


People also ask

How do I view Server logs in Eclipse?

Go to the "Server" view, then double-click the Tomcat server you're running. The access log files are stored relative to the path in the "Server path" field, which itself is relative to the workspace path. It refers to your workspace.

Where are Tomcat logs Eclipse?

Go to the Servers view in Eclipse then right click on the server and click Open. The log files are stored in a folder realative to the path in the "Server path" field. Since the path field is uneditable, you can also "Open Launch Configuration", click Arguments tab, copy the VM argument for catalina.

How do I check Tomcat logs?

The main Apache Tomcat configuration file is at /opt/bitnami/tomcat/conf/server. xml. Once Apache Tomcat starts, it will create several log files in the /opt/bitnami/tomcat/logs directory.

How do I view tomcat logs on Windows Server?

Apache Tomcat Logs Location in Windows By default, Apache Tomcat logs are stored in the install_dir/logs where the install_dir refers to the Apache Tomcat installation directory. The log files are stored in the logs directory.


2 Answers

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

like image 130
Saulo Silva Avatar answered Nov 16 '22 17:11

Saulo Silva


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

Hope this helps.

like image 44
javamonkey79 Avatar answered Nov 16 '22 17:11

javamonkey79