Where can I view Tomcat log files in Eclipse?
For some reason my Tomcat installation/log folder is always empty.
BTW, does Tomcat dump to the log file after a while or is it immediate?
Where can I view Tomcat log files in Eclipse?
For some reason my Tomcat installation/log folder is always empty.
BTW, does Tomcat dump to the log file after a while or is it immediate?
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.
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.base (within quotes). This is the full path of your WTP webapp directory. Copying the value to the clipboard can save you the laborious task of browsing the file system to the path.
Also note you should be seeing the output to the log file in your Console view as you run or debug.