Logging settings
from version 1.5
The inspectIT uses the Logback as the logging framework. This page describes the possibilities a user has to control the logging output of inspectIT components.
This page relates only to logging settings for the CMR and inspectIT UI.
Default configuration
Each project defines the default logging configuration in the [ROOT]/logging-config.xml file. This is the default configuration that will be used. This file can be changed by the user to enable/disable different levels of logging for different components.
By default the inspectIT components log on the INFO level, while the 3rd party libraries are configured to log only the ERROR level.
Log files
By default all the files created by the logging are placed in the [ROOT]/logs folder. Here is the overview of the files created and their content:
File | Content | Rollover policy | Max file size | Max history |
---|---|---|---|---|
CMR | ||||
logs/cmr.log | Contains the same output as the console. | Daily | 20MB | 30 days |
logs/exceptions.log | Contains only the exceptions that were logged. | Daily | 20MB | 30 days |
logs/statistic.log | Contains the CMR usage and health statistics. | Daily | 20MB | 30 days |
inspectIT UI | ||||
logs/inspectit.log | Contains the same output as the console. | Daily | 20MB | 30 days |
logs/exceptions.log | Contains only the exceptions that were logged. | Daily | 20MB | 30 days |
These files can be deleted at any time if you want to save the hard disc space.
Pointing to external log configuration file
It is also possible to point to the external log configuration file custom defined by the user. This can be done by defining the -Dinspectit.logging.config property that will point to the file. For example:
-Dinspectit.logging.config=/home/user/myLogConfig.xml
Please note that the file must contain a valid Logback configuration.