Log CDM

CDM logging can be turned on for both the client and the service.


CDM Logging in the client

../../_images/search-property-256.png

Copy the file CDMLogConfig.cfg from the installation folder of the CDMService to the project folder. Uncomment line 17 of this file.

 1# PRO global log configuration
 2log4j.rootLogger=INFO, file
 3
 4# Write appender to file (max 50MB, at most 10 backup files)
 5log4j.appender.file=org.apache.log4j.RollingFileAppender
 6log4j.appender.file.file=CDMLog.xml
 7log4j.appender.file.ImmediateFlush=true
 8log4j.appender.file.layout=org.apache.log4j.xml.XMLLayout
 9log4j.appender.file.MaxFileSize=50MB
10log4j.appender.file.MaxBackupIndex=10
11
12# Special tracing for some loggers
13log4j.logger.ARMI=INFO
14log4j.logger.AIMMS=WARN
15#log4j.logger.CDMService=TRACE
16#log4j.logger.CDMDB=TRACE
17log4j.logger.CDM=TRACE

The output file CDMLog.xml is in the project folder.

CDM logging in the server

../../_images/server-128.png

The CDMServiceLogConfig.cfg set the loggers of CDMService and CDMDB to TRACE (the highlighted lines):

 1# PRO global log configuration
 2log4j.rootLogger=INFO, file
 3
 4# Write appender to file (max 50MB, at most 10 backup files)
 5log4j.appender.file=org.apache.log4j.RollingFileAppender
 6log4j.appender.file.file=/cdm/logs/CDMServiceLog.xml
 7log4j.appender.file.ImmediateFlush=true
 8log4j.appender.file.layout=org.apache.log4j.xml.XMLLayout
 9log4j.appender.file.MaxFileSize=50MB
10log4j.appender.file.MaxBackupIndex=10
11
12# Special tracing for some loggers
13log4j.logger.ARMI=INFO
14log4j.logger.AIMMS=WARN
15log4j.logger.CDMService=TRACE
16log4j.logger.CDMDB=TRACE

The output file CDMServiceLog.xml is in the folder /cdm/logs.