How to configure tomcat to create all logfiles when run as integrated server in eclipse

When we deploy web applications in tomcat server running inside eclipse, tomcat by default does not create few log files like localhost.log etc. To set up tomcat to create all the logfiles via eclipse, we can take the following steps

When we add tomcat as server in eclipse and go to Servers View -> Double Click on Servers -> Click on Open Launch Configuration -> Go to Arguments Tab -> See VM argument’s

You will see following parameters

-Dcatalina.base="C:\...\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0" 
-Dcatalina.home="C:\install\apache-tomcat-8.0.30"
-Dwtp.deploy="C:\...\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps" 
-Djava.endorsed.dirs="C:\install\apache-tomcat-8.0.30\endorsed"

To set up tomcat to create all the logfiles, we need to add following parameters.

-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file="C:\install\apache-tomcat-8.0.30\conf\logging.properties"

Once done, Apply and save the changes and Restart the eclipse.

You should see localhost*.log and other files in the catalina.base directory.

Version History


Date Description
2016-06-26    Initial Version