logback.xml

This topic briefly explains how logging is handled in AWI, and describes how to change the default setting for the severity level of AWI event messages that are logged.

Configuration required?

No. Default values are provided in the delivered version.

Related AWI Products

The AWI framework and all its perspectives.

Description

Logging of AWI event messages is handled by the logback framework for Tomcat. This logging covers everything that happens in AWI except for the communication with the AE API . The specifications for AWI logging are defined in the logback.xml. Here you can configure the lowest severity level of messages that you want to have tracked. You can change this value, but should not change anything else in the file.

The severity level in the delivered logback.xml is set to DEBUG. For a normal, functioning production environment, you should change this to INFO, so that performance isn't sluggish due to excessive logging.

Logging for error reporting

For information about the various logging and tracing options in AWI, as well as steps for collecting log data when reporting an error to CA Automic Support, see Preparing Log Files for Error Reporting.

Log levels

The following list describes the setting values for the message level, listed in the order of the severity of the triggering situation:

File location

When you have installed the AWI, you find this configuration file in your application server, in the ...\<AWI>\config folder.

To Change the Default Setting for the Severity Level

  1. In your application server go to ...\<AWI>\config.
  2. Open the logfile.xml file to edit it.
  3. Change the log level for the root appender.
    1. Search for 'ref="LOGGER" .'
    2. One line above that, change the value of the <root level= value> parameter to the lowest severity level of the log messages that you want tracked for AWI. For more information, see Log levels.

    Do not change any other parameters in the file because this might make it impossible for CA Automic to investigate error situations.

  4. For the changes to take effect, stop and restart your application server.

Structure

The list below explains the root element where you set the log level for the LOGGER appender in the logback.xml. The rest of the file is not described, because you should not touch it.

Example

The following code is the section of the logback.xml where you set the root log level for logging in AWI. Here it is set to "INFO", which is the default value and appropriate for a production environment. You can change this, for example to "DEBUG" when you need more verbose log files with more details for error analysis.

<!-- Log level is set here. Possible values: TRACE, DEBUG, INFO, WARN, ERROR

          DEBUG is recommended on testing and development instances.

          INFO is recommended on production instances.

-->

To avoid too many log entries.

          <appender-ref ref="LOGGER" />

</root>