CMR logging configuration
Logging settings
More information on logging settings can be found in the Administrator Guide section.
The CMR comes with a Logback configuration file which is not very chatty by default. It is possible to change these settings by editing the logging-config.xml file located in the installation root. To log the service requests for example, one can change the log level of the service methods to trace or debug:
<!-- service logging, set this to 'debug' to get additional information about: - Number of timer objects being stored - information about the exception sensor - information about the combined metric sensor --> <logger name="info.novatec.inspectit.cmr.service" level="trace" />
The above configuration would then print detailed information about the called service methods and the time it took for each request:
2014-04-14 14:57:20,587: 34756 [ btpool0-1] TRACE mr.service.ServerStatusService - --> info.novatec.inspectit.cmr.service.IServerStatusService#getServerStatus() 2014-04-14 14:57:20,588: 34757 [ btpool0-1] WARN mr.service.ServerStatusService - 'Get Server Status' duration: 0.024402 ms 2014-04-14 14:57:20,591: 34760 [ btpool0-1] TRACE mr.service.ServerStatusService - <-- info.novatec.inspectit.cmr.service.IServerStatusService#getServerStatus() 2014-04-14 14:57:20,655: 34824 [ btpool0-1] TRACE ervice.GlobalDataAccessService - --> info.novatec.inspectit.cmr.service.IGlobalDataAccessService#getAgentsOverview() 2014-04-14 14:57:20,660: 34829 [ btpool0-1] WARN ervice.GlobalDataAccessService - 'Get Agents Overview' duration: 4.953291 ms 2014-04-14 14:57:20,661: 34830 [ btpool0-1] TRACE ervice.GlobalDataAccessService - <-- info.novatec.inspectit.cmr.service.IGlobalDataAccessService#getAgentsOverview() 2014-04-14 14:57:20,712: 34881 [ btpool0-1] TRACE ervice.GlobalDataAccessService - --> info.novatec.inspectit.cmr.service.IGlobalDataAccessService#getCompleteAgent() 2014-04-14 14:57:20,712: 34881 [ btpool0-1] WARN ervice.GlobalDataAccessService - 'Get Complete Agent' duration: 0.045022 ms 2014-04-14 14:57:20,712: 34881 [ btpool0-1] TRACE ervice.GlobalDataAccessService - <-- info.novatec.inspectit.cmr.service.IGlobalDataAccessService#getCompleteAgent()
To get even more information about the other components of the CMR, the level of the rootlogger can be changed, too:
<!-- set log levels - for more verbose logging change 'info' to 'debug' --> <root level="info"> <appender-ref ref="stdout" /> <appender-ref ref="file" /> <appender-ref ref="exceptions" /> </root>