ConSol CM Logging and Log Files

Introduction

Log files are the main information source for the administrator about the activities of the system and potential problems of the system. The administrator should have a look at the log files on a regular basis. There may be problems that do not appear on the user interface, but are reported in the log file.

Log Files

The location of the log files and the logging behavior can be configured in the respective .xml files:

Log File Types

The following log files are used:

Admin Tool-Specific Log Files

Two log files report information which are specific for the Admin Tool. The CM logging configuration might have to be adapted during a system update from a CM version lower than 6.11 to 6.11.

Config info #1: How to integrate audit.log into the CM configuration. Only required for updates from CM version older than 6.11 to 6.11.

Insert the following line into the configuration file cm6.xml or cm6-cmrf.xml at the correct locations. If you are not familiar with the logging configuration, ask your CM consultant for help!

<size-rotating-file-handler name="AUDIT" autoflush="true">

<file relative-to="jboss.server.log.dir" path="audit.log"/>

<append value="true"/>

<rotate-size value="300m"/>

<max-backup-index value="6"/>

<formatter>

<pattern-formatter pattern="%d %-5.5p [%30.-30c] [%X{username}-%X{context}-%X{sessionId}] %m%n"/>

</formatter>

 

 

</size-rotating-file-handler>

<logger category="com.consol.cmas.core.server.history.method.MethodExecutionJournalAspect" use-parent-handlers="false">

<level name="TRACE"/>

<handlers>

<handler name="AUDIT"/>

</handlers>

</logger>

Config info #2: How to integrate transfer.log into the CM configuration. Only required for updates from CM version older than 6.11 to 6.11.

Insert the following line into the configuration file cm6.xml or cm6-cmrf.xml at the correct locations. If you are not familiar with the logging configuration, ask your CM consultant for help!

<size-rotating-file-handler name="TRANSFER_FILE" autoflush="true">

<file relative-to="jboss.server.log.dir" path="transfer.log"/>

<append value="true"/>

<rotate-size value="300m"/>

<max-backup-index value="6"/>

<formatter>

<pattern-formatter pattern="%d %-5.5p [%X{username}-%X{context}-%X{sessionId}] %m%n"/>

</formatter>

</size-rotating-file-handler>

 

 

<logger category="TRANSFER" use-parent-handlers="false">

<level name="INFO"/>

<handlers>

<handler name="TRANSFER_FILE"/>

</handlers>

</logger>

Log File Structure

In the default configuration, log file entries have the following syntax:

Date Timestamp Loglevel [Logger] Message

Example for a log file entry (successful start of ConSol CM in JBoss):

2012-11-06 14:22:12,685 INFO [e.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080

The components of the message:

Simple messages, and those reporting a successful operation, often have only one line.

When errors are reported (log level ERROR), you might find stack traces in the logs. Please contact one of our ConSol CM consultants or our ConSol CM support team for help.