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.
if you want logs in a separate file other than the console: double click on the server--> open launch configuration--> arguments --> add -dlog.dir = "path where you want to store this file" and restart the server.
tip: make sure that the server is not running when you are trying to add the argument. you should have log4j or similar logging framework in place.
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.
double click and open the server. go to 'arguments'. -dcatalina.base= .. something. go to that something. your logs are there.
if you're after the catalina.out log and you are using eclispe with tomcat, this works for me:
- create catelina.out some where in your computer. in my case, i put it in logs directory of my tomcat install directory e.g: /opt/apache-tomcat-7.0.83/logs/catena.out
- go to your eclipse, in the servers tab, double-click on the tomcat server. you will get a screen called overview.
- click on "open launch configuration". then click on the "common" tab.
- at standard input and output section, check "output file", click on file system and then selected the folder where your create your catelina.out.
- finally, restart the tomcat server.
looks like the logs are scattered? i found access logs under
another forum provided this answer:
ahh, figured this out. the following system properties need to be set, so that the "logging.properties" file can be picked up.
assuming that the tomcat is located under an eclipse project, add the following under the "arguments" tab of its launch configuration:
i'm not sure if you were after catalina.out or one of the other logs produced by tomcat.
but, if you're after the catalina.out log file then follow the directions below:
in the servers tab, double-click on the tomcat server. you will get a screen called overview.
click on "open launch configuration". click on the "common" tab.
towards the bottom of the screen you can check the "file" checkbox and then specify a file that can be used to log your console (catalina.out) output.
finally, restart the tomcat server.
- Where can I view Tomcat log files in Eclipse?
- Where can I find the source files of eclipse icons?
- How do I view java log files in Eclipse
- Eclipse Tomcat log files
- How can I get Eclipse to store .class files in a folder outside the Project folder where I store the .java source files?
- with eclipse 3.5.2 - android sdk - where are the log files from a crash
- Can Eclipse Tomcat automatically pick up added files in common project?
- Eclipse - How can I change a 'Project Facet' from Tomcat 6 to Tomcat 5.5?
- How do I stop the error log view showing in eclipse
- Where can I download Eclipse Android bundle?
- In Eclipse, can I view the files I currently have open in a vertical stack instead of a horizontal one?
- Where does Eclipse save the list of files to open on startup?
- Where can I find older versions of Eclipse ADT
- How can I make hidden files display in Eclipse Project explorer when using a RSE linked folder?
- Where can I find the source code for the Android Development Tools (ADT) plugin for the Eclipse IDE?
- Can I view a resultset in Eclipse debugger as a table
- Where does Eclipse store generated servlet files for Tomcat?
- How can I view the outline in eclipse when using the revealing module pattern?
- Where can I obtain an Eclipse server adapter for WebSphere Application Server Version 7?
- Can eclipse monitor an arbitrary log file in the Console view?
- where to put .properties files in an Eclipse project?
- Where can I find the setting for folding / unfolding the import statements in java in eclipse by default
- Can Eclipse automatically refresh Tomcat app?
- Eclipse does not refresh project files in package explorer view
- How can I run a Maven webapp in Eclipse when I use profiles to populate properties files at build time?
- How can I view packages as folder structure in eclipse
- View log of maven commands run by Eclipse plugins
- Eclipse cleanup - what are the ".index" files - can I safely delete them?
- Where does Eclipse store information about which files are "Derived"?
- Android - How can I view a sql database created in my app? I'm running it on the Android emulator in Eclipse
More Query from same tag
- how see files of project after cloning git repository with eclipse?
- toString() unavailable error in Eclipse debugger
- Selenium Webdriver file attachments
- Removing dependence on dynamic SQL through Ant scripting
- Share all settings from all Eclipse workspaces
- How to run mwe.utils.StandaloneSetup in server
- debug Blender Python in Eclipse and PyDev?
- How to detect method replacements done by the Eclipse Debugger
- Unity3D Plugin - The Google Play services resources were not found
- What is the purpose and usage of class EclipseStarter?
- How do you install the latest version of Xuggler (5.4, as of 18/05/2013) in eclipse?
- Sirius error NullPointerException
- Conversion to Dalvik format failed eclipse android-suport-v4.jar error
- Eclipse auto-formatting of multiline // (double-slash) comments
- Liquibase autocompletion in eclipse (maven project)
- Error when I run my app on eclipse emulator
- m2eclipse .classpath generation with AJDT
- Force eclipse to ignore "COUNTRY_ISO cannot be resolved or is not a field' error and compile anyway
- How to check out multiple maven projects from remote git repository
- Getting Invocation Target Exception when calling class in a jarfile
- eclipse pdt debugger won't terminate, it starts up on its own after finishing or manual termination
- Writing Fit/Fitnesse tests using Java
- android app developed in eclipse-ADT crashes cause of unknown reason
- Getting NoClassDefFoundError for BodyTagSupport with TomCat running from Eclipse
- JNI UnsatisfiedLinkError issue
- How to make Image smaller in a button
- Preview Support Library Eclipse
- Abstract class: output of this code
- How do I set the main Java type in Eclipse?