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 <AgentControllerConfiguration> element.
  3. Specify the new logging directory as the value for the loggingDirectory 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 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 <AgentControllerConfiguration> element.
  2. Change the value of its loggingLevel attribute to be one of the available logging levels, according to your requirements.

Related tasks
Locating the configuration files
Administering the Agent Controller
 


(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.