AppNode Logging

AppNode logging is enabled for every AppNode.

The AppNode log file is named bwappnode.log. It is written to the BW_HOME/domains/<domain>/<AppSpace>/<AppNode>/log folder.

An AppNode log file is created when an AppNode is started. By default, AppNode logs are written to a file appender only. The logs can be viewed in a text editor or displayed in the bwadmin console. The default logging level is ERROR.

In addition to AppNode logging, execution statistics are collected through logback. For information, see Integrating Process Statistics Collection Using Logback.

To view and change the logging level for a single AppNode:

Procedure

  1. Create and start an AppNode.
  2. Open the logback.xml file in the AppNode root folder in a text editor: BW_HOME/domains/<domain>/<AppSpace>/<AppNode>
  3. Change the ROOT level at the end of the file as needed.
  4. Save the logback.xml file.
    By default, the new configuration is reloaded in 60 seconds. There is no need to restart the AppNode for the logging level to take effect.
    To change the scan period, add the scanPeriod attribute to the configuration element in the logback.xml file. For example:
    <configuration scan="true" scanPeriod="10 seconds">
  5. Save the file, start the AppNode, and the application.
  6. Open the bwappnode.log file in the root folder of the AppNode to see what has been logged. The log file can be opened in the bwadmin console with the following command from the containing AppSpace: getlogfile appnode AppNode