Logging
In 9.12.1 “logback” was replaced with “ima-domain-logging”. Log settings can be configured in file “LogConfig.xml” which is placed in the “resources” directory. For the Batch Processing Monitor a log file with the name “monitor.log” is created. For the Scheduler server the log file with the name “server.log” is created in the default subdirectory “...../logs”.
Since 9.13.1 the new property “LogDirectory” is supported in the configuration file “ColdScheduler.properties” for defining a specific log directory for writing the monitor.log and server.log files. If the property “LogDirectory” is not set, the default subdirectory is used “./../logs”.
The following log levels exist: ERROR, INFO, DEBUG, and TRACE.
Loggers, which are recommended as standard, are activated by default with level “INFO”:
<logger name="com.tsystems.coldscheduler.comm" level="INFO" /> <logger name="com.tsystems.coldscheduler.database" level="INFO" /> <logger name="com.tsystems" level="INFO" /> <logger name="com.tsystems.coldscheduler.database.DbSql" level="INFO" />
The following loggers are appropriate for troubleshooting and error analysis.
Database – selects:
<logger name="com.tsystems.coldscheduler.scheduler.JobsDao" level="DEBUG" />
Example log output:
13:56:54.685 [Scheduler] DEBUG c.t.c.s.JobsDao - select id, spoolfile, generation, attempts, state, type, status, stop, data from cold_steuer where data <= SYSDATE and status=? and serverid=? and stop!=1; [Waiting, 1]
Scheduler:
<logger name="com.tsystems.coldscheduler.scheduler.Scheduler" level="DEBUG" />
Example log output:
13:54:18.034 [Scheduler] INFO c.t.c.s.Scheduler - Fetching job list...
Jobs:
<logger name="com.tsystems.coldscheduler.scheduler.JobRunner" level="DEBUG" />
Example log output:
11:17:15.913 [JobRunner-0] INFO c.t.c.s.JobRunner - Job (8662)[DemoSpool/8364] Initialize(10) started... 11:17:17.015 [JobRunner-0] INFO c.t.c.s.JobRunner - Job (8662)[DemoSpool/8364] Initialize(10) finished with status 9
Monitoring interface:
<logger name="com.tsystems.coldscheduler.monitoring" level="DEBUG" />
Aktion.ini reading routine:
<logger name="com.tsystems.coldscheduler.action" level="DEBUG" />
Global debugging of all components:
<logger name="com.tsystems" level="DEBUG" />