This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

Configure application logging for Tomcat

General questions regarding the development with ProjX.

Configure application logging for Tomcat

Postby Development@SIB » Thu Nov 24, 2016 3:19 pm

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.
User avatar
Development@SIB
 
Posts: 325
Joined: Mon Sep 28, 2009 1:54 pm

Return to Development