Configuring logging

An important aspect of any server application is logging. The Agent Controller provides logging for debugging and reporting. This is accomplished through the use of a single log file, servicelog.log, which is by default, placed in the config directory where the Agent Controller is installed. You can configure logging by

Changing the default logging directory

In certain situations, it will be necessary to change the default logging directory.  For example, this would be necessary on systems that have the Agent Controller installed on a read-only file system.

To change the default logging directory, follow these steps:

  1. Locate the serviceconfig.xml configuration file. See the related task.
  2. Open it in an editor, and search for the <Logging> element.
  3. Specify the new logging directory as the value for the directory attribute of this element.

Modifying logging filters

You can specify that only messages of a specified logging level or greater are to be logged to the file by the use of a simple logging filter. The various logging levels are specified below:

To modify logging filters, follow these steps:

  1. In the serviceconfig.xml file, locate the <Logging> element.
  2. Change the value of its level attribute to be one of the above logging levels, according to your requirements.

Changing the format of the logged messages

You can specify the format of the message that are logged to be either plain text or CBE formatted.  The format specifications are:

To modify logging format, follow these steps:

  1. In the serviceconfig.xml file, locate the <Logging> element.
  2. Change the value of its format attribute to be one of the above logging formats, according to your requirements.

 

Related tasks
Locating the configuration files
Administering the Agent Controller
 


Copyright (C) 2006 Intel Corporation.