IBM Tivoli Composite Application Manager for Application Diagnostics, Version 7.1.0.1

Set the logging and tracing levels

To change the logging and tracing level for the data collector , edit property files and then restart the data collector. Different files are used for native code and Java code. These settings apply to the Data Collector of both ITCAM Agent for WebSphere Applications and ITCAM Agent for J2EE.

There are four components in the native code of the data collector. They are Network Agent, Event Agent, Command Agent and Common code. To change the log levels for these components, modify the file DC_home/runtime/ServerInstance/cyn-cclog.properties. For example:

logger.dc.trace.listenerNames=handler.file.dc.trace
# dc command agent logger properties logger.dc.ca.trace.level=INFO
# dc network agent logger properties logger.dc.na.trace.level=DEBUG_MID
# dc event agent logger properties logger.dc.ea.trace.level=DEBUG_MIN
# dc common code logger properties logger.dc.cc.trace.level=INFO

Restart the data collector after making changes to cyn-cclog.properties.

On IBM i, the file cyn-cclog.properties is in EBCDIC encoding; when saving changes, ensure the file is saved in this encoding.

You may specify tracing levels for the Java code in the data collector in the DC_home/runtime/instance/cynlogging.properties file. The following code snippet from that file indicates where to specify the tracing level for the primary data collector Java code:

#-----------------------------------------------
# data collector #-----------------------------------------------
# MESSAGE LOGGER
CYN.msg.datacollector.level=INFO
CYN.msg.datacollector.logging=true
# TRACE LOGGER
CYN.trc.datacollector.level=INFO

INFO means only errors and informational trace messages will be written.

You may also specify the tracing level for the data collector Java code that communicates with the Tivoli Enterprise Monitoring Agent. Make the following changes in the same file:

# MESSAGE LOGGER
CYN.msg.temadc.level=INFO
CYN.msg.temadc.logging=true

# TRACE LOGGER
CYN.trc.temadc.level=INFO
CYN.trc.temadc.logging=true

Tracing can be set at more granular levels by setting CYN.trc.partially qualified class name.level=debug level in the cynlogging.properties properties file. This property stipulates that for the class beginning with partially qualified class name tracing will be at the specified level. For example:

The data collector must be restarted for changes to take effect.


+

Search Tips   |   Advanced Search