Enabling the exception log
The exception log enables the diagnosis of exceptions that occur at any time during processing on an integration server.
About this task
The exception log resource manager enables data relating to exceptions that occur at any time during processing on an integration server to be recorded, in an exception log, so that the message flow developer or administrator can diagnose such exceptions. The exception log is particularly useful when you are trying to diagnose exceptions that are not reported to the error log because the exception has been handled in a message flow. The exception log is controlled by three properties that are available in the server.conf.yaml configuration file. The values of these properties can be viewed by using the mqsireportproperties command.
Even if the exception is not present in the error log meaning that it has been handled by flow logic, the exception is added to the exception log.
- WorkDirectory/config/common/log/integration_server.IntegrationServerName.exceptionLog.txt when the integration server is independent.
- MQSI-REGISTRY/common/log/IntegrationNodeName.IntegrationServerName.exceptionLog.txt when the integration server is managed by an integration node.
- A summary or short description of the exception.
- A list of the exception's inserts.
- Message numbers of any nested exceptions.
- Optionally, details recorded by the Flow Thread Reporter. If the exception occurs in a message flow, the Flow Thread Reporter provides data to enable you to identify the location in the message flow at which the exception occurred.
Procedure
ExceptionLog:
enabled: true # Enables logging of exceptions to <workdir>/config/common/log/integration_server.<name>.exceptionLog.txt
includeFlowThreadReporter: true # Toggles whether exception in the exception log include a flow stack and history from the flow thread reporter
showNestedExceptionDetails: true # Toggles whether nested exceptions are shown by default in the exception log