Configuring logging

An important aspect of any server application is logging. The Agent Controller provides logging for both debugging and accounting. This is accomplished through the use of a single log file, servicelog.log, which is by default, placed in the RAC_Installdir\config directory.

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,...

  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,...

  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.

Note: It is also possible for agents to log to the Agent Controller log file. When an agent requests an event to be logged, it passes through the same logging level filter as the Agent Controller events.

Related tasks
Locating the configuration files
Administering the Agent Controller