IBM App Connect Enterprise, Version 11.0.0.2 Operating Systems: Windows, Linux


Viewing and setting runtime properties for Activity Logs

Display and modify the runtime properties that govern the behavior of Activity Logs within the scope of a single integration server.

About this task

You can view and set properties for Activity Logs by modifying the server.conf.yaml configuration file for the integration server. For example, you can use these properties to change the number of Activity Log entries held in memory, or to limit log entries to error messages.

The properties that can be set are:
  • activityLogEnabled

    This property takes a Boolean value that indicates whether Activity Log entries are kept in memory. The default value for this property is true.

  • defaultLogSizePerThread

    This property takes an integer value that determines the maximum number of Activity Log entries written to memory before the log is recycled. The default value is 1000. The property can have any positive integer value.

    If the thread on which the log is processed terminates (for example, because you redeploy or restart the integration server), the log entries that are held in memory are lost. When diagnosing a problem, save the current activity log before redeploying or restarting your integration server.

  • minSeverityLevel

    This property takes an integer value that is used to specify the severity of messages written to the Activity Log.

    Only messages with a severity level higher than or equal to the specified value for this property are logged. The initial value of the property is INFO, which means that messages of all severities are written to the log.

    Valid values are INFO, WARN, and ERROR, where ERROR is the highest severity level and INFO the lowest.

    Specify a value of WARN to log messages of severity levels WARN and ERROR.

To display the current Activity Log configuration properties and then modify them, complete these steps:

Procedure

  1. Open the server.conf.yaml configuration file for your integration server, by using a YAML editor.

    If you do not have access to a YAML editor, you can edit the file by using a plain text editor; however, you must ensure that you do not include any tab characters, because they are invalid in YAML and would cause your integration server configuration to fail. If you are using a plain text editor, ensure that you use a YAML validation tool to validate the content of your file.

  2. Set the activityLogEnabled property to true.
  3. Set the defaultLogSizePerThread property to the maximum number of Activity Log entries that you want to be written to memory before the log is recycled. The default value is 1000.
  4. Set the minSeverityLevel property to specify the minimum severity of messages that you want to be written to the Activity Log. The default is INFO.
  5. Restart the integration server for the changes to take effect. For information about how to start an integration server, see Starting an integration server.

bj55060_.htm | Last updated 2018-11-02 14:46:27