Configuring logging
The Operational Decision Manager components produce logs that capture all sorts of messages and events. These logs help you to debug the component when a problem occurs.
About this task
When you install Operational Decision Manager, the following configmap files are generated. They define the default log levels for each Operational Decision Manager component.
| Component | Name of configmap |
|---|---|
| Decision Center | <instance_name>-odm-dc-logging-configmap |
| Decision Runner | <instance_name>-odm-dr-logging-configmap |
| Decision Server console | <instance_name>-odm-ds-console-logging-configmap |
| Decision Server Runtime | <instance_name>-odm-ds-runtime-logging-configmap |
Where <instance_name> is the name of the custom resource file.
| ODM component | traceSpecification | traceFileName | traceFormat |
|---|---|---|---|
| Decision Center |
|
="stdout" |
="BASIC" |
| Decision Runner Decision Server console Decision Server Runtime |
|
="stdout" |
="BASIC" |
The default loggers that are listed in the traceSpecification column provide a good level of messages without impacting performance.
Procedure
Results
The operator modifies the application to use the new configmap and updates the /config/logging/logging.xml file.
The /logs/messages.log file of the ODM container shows the change in a new message. For example, the following message shows a change to the trace state.
com.ibm.ws.logging.internal.TraceSpecification I TRAS0018I: The trace state has been changed. The new trace state is ...