Page 1 of 1

Configure application logging for Tomcat

PostPosted: Thu Nov 24, 2016 3:19 pm
by Development@SIB
Create following file:

Code: Select all
WEB-INF/classes/logging.properties

and add following

Code: Select all
########################################################################
# HANDLER definition
########################################################################

handlers = org.apache.juli.FileHandler

########################################################################
# HANDLER configuration
########################################################################

org.apache.juli.FileHandler.level = ALL
org.apache.juli.FileHandler.directory = ${catalina.base}/logs
org.apache.juli.FileHandler.limit = 10000
org.apache.juli.FileHandler.count = 5
#org.apache.juli.FileHandler.formatter = com.sibvisions.util.log.jdk.JdkLineFormatter
org.apache.juli.FileHandler.prefix = myappname.

########################################################################
# Package specifig log levels
########################################################################

#com.sibvisions.rad.persist.level = ALL


It's also possible to add the logging.properties file in your application jar or to add the classes directory in your war file. Simply customize your build process.

Read More about tomcat logging.

Read more about JVx logging.