Logging in AWI

This topic briefly explains how logging is handled in AWIProduit Automic : interface Web, simple et claire, qui permet l'+char(39)+'accès aux différentes fonctionnalités d'+char(39)+'Automation Engine. and how to change the default log level setting. For information about the kind of log data to collect for an Automic Support ticket, see "Preparing Log Files for Error Reporting".

If errors occur, the logging information can help you finding the source for the error. Logging is enabled by default, you can change the default log level, if you want more or less event occurrences written to the log file.

Logging in the AWI is handled by the Tomcat logback framework. You can define the log level in the logback.xml file. The specified log level defines the lowest severity. Its occurrence and the occurrence of events of higher severity are logged. Extensive logging, however, can impact AWI's performance. When you encounter performance problems, check your log level and reduce the written messages by specifying a higher log level, if necessary.

Logging involves the following files:

Changing the Log Level

Logging is enabled by default set to DEBUG, but, if necessary, you can change the log level in the logback.xml configuration file that you find in the webapps\<AWI>\config folder of your Tomcat web application server.

Do not change any other parameters in this file. Changing other parameters might prevent Automic from investigating situations that cause errors.

The log level is defined in the<root> element by the level="[log_level]"> element The <root> element contains the <appender-ref> element that specifies that this<root> element defines the LOGGER appender. The LOGGER appender is the component that writes the logging events to the log file.

Steps....

  1. Switch to the webapps\<AWI>\config folder and open the logback.xml.
  2. Search for the <root> element.

    You can find the <root> element best by searching for ref="LOGGER". The <root> element is one line above.

  3. Change the log level for the root appender by setting the level="[log_level]" attribute to the lowest log level for which you want messages to be written to the log file. See the "LogLevels" table for more information.
  4. For the changes to take effect, stop and restart your Tomcat web server.

Example

The log level is set to "DEBUG" (default value) in the following example. If you change it to "INFO", fewer messages are written to the file, as non-critical log messages are ignored.

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

-->

<root level="DEBUG">

          <appender-ref ref="LOGGER" />

</root>

LogLevels

The following table lists the available log level values (highest to lowest).

Log Level

Purpose

Tracing Data in Message
ERROR

Failure of some action"Voir ""Action en cas de non-respect (AWI Service Orchestrator)""." of an AWI component that AWI was not able to recover from, such as nullPointExceptions or closedStreamExceptions.

No user-identifying data. However, hostnames, other site-specific data, class names, object names, and the like are included with the event related specifications. The message contains the full stack trace.

WARNING

Unexpected behavior of an AWI component, such as unstable network connections that require auto-reconnect from AWI, a post-timeout retry, or triggering of a workaround for a third-party bug .

Same as ERROR level

INFO

Configuration values at login or component startup, or global configuration changes.

Same as ERROR level but without the full stack trace.

DEBUG

High-level user-specific actions such as login/logout events, user changes (such as object edits), authorization related events (such as successful/failed setup actions), and important performance measures

User information (such as user ID and HTTP session ID) and event related specifications.

TRACE

Low-level user-specific actions such as navigation, object open, button clicks, the payload of backend-calls, internal application events, and all calls to the backend.

Same as DEBUG.

AWI Log Files

The log files in the logs folder of your Tomcat web application server are named as follows:

<host name>_ECCDeprecated Term. Replaced by: AWI_Log.##.TXT where

The current log file is a .txt file, older log files are compressed in .zip archives.

Your administrator can also enable writing trace files (similarly named as the log files (<Host name>_ECC_TRACE.##)) to this folder. Your administrator might need them to find the cause of an error.