ThingWorx Model Definition in Composer > System > Logs > Tomcat Log Location Configuration
Tomcat Log Location Configuration
The Java Utility Logging Implementation, or JULI, handles logging in Tomcat. Before ThingWorx 9.6.0, Tomcat logs were generated at <tomcat_installation_folder>\logs location. Tomcat logs location configuration was not available. Tomcat logs, class, and package level logs configurations are handled through the logging.properties file available at <Tomcat Installation Folder>/conf/ path.
From ThingWorx 9.6 onwards, instead of updating the logging.properties file, environment variables are available at the Operating System level. Tomcat will pick values set as environment variables, and log location and log level will be set accordingly.
Environment Variable
Description
Default Value
Allowed Values
TOMCAT_LOGS_LOCATION
For configuring Tomcat log location
/ThingWorxStorage
Location available on Physical volume
CATALINA_LOGS_LEVEL
For configuring Catalina logs level.
FINE
SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST
LOCALHOST_LOGS_LEVEL
For configuring localhost logs level.
FINE
SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST
MANAGER_LOGS_LEVEL
For configuring manager logs level.
FINE
SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST
HOST_MANAGER_LOGS_LEVEL
For configuring host manager logs level.
FINE
SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST
CONSOLE_LOGS_LEVEL
For configuring console logs level.
FINE
SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST
TOMCAT_CLASS_LOG_LEVEL
For setting log level to particular class or package.
The values are comma separated for class names and colon separated for level.
For example, org.apache.catalina.startup.VersionLoggerListener:SEVERE, org.apache.catalina.authenticator.AuthenticatorBase:WARNING
Was this helpful?