Make Tomcat Log Stuff to Console (in Eclipse)

Posted by in Software, Tutorial

TL;DR: in your project’s src/main/resources add the CONSOLE setting to the file.

While trying to add features to a web application, I stumbled on an odd situation: my Eclipse Console would show only log messages for tomcat processes, none of my logs. I’ve tried to add a logger properties in Tomcat itself in ${CATALINA_BASE}/lib, but I had no luck.

The solution is to use your app’s own (in src/main/resources) and enable CONSOLE logger. My file looks like this now:

where is my application’s package name (e.g. com.laurivan.helloworld).


A little experiment: If you find this post and ad below useful, please check the ad out :-)