tomcat logging properties


You can have a logging.properties each web applications. To have a logging.properties, you need to put it into WEB-INF/classes.

.handlers = java.util.logging.ConsoleHander, org.apache.juli.FileHandler
# .handers is for application root logger


#org.apache.juli.FileHandler.directory = ${catalina.base}/libs
# this line will not working well. org.apache.juli.FileHandler never interpret ${catalina.base}.
# default directory is lib
# This directory will be made under the current working directory for tomcat process.
# When you run tomcat with systemd, you confirm WorkingDirectory in the setting systemctl unit file.