Customizing log levels
Starting the ODM components produces 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 ODM on Certified Kubernetes the following configmap files are created, which define the default log levels for each ODM component.
| Component | Name of configmap |
|---|---|
| Decision Center | <release_name>-odm-dc-logging-configmap |
| Decision Runner | <release_name>-odm-dr-logging-configmap |
| Decision Server Console | <release_name>-odm-ds-console-logging-configmap |
| Decision Server Runtime | <release_name>-odm-ds-runtime-logging-configmap |
Where <release_name> is the name you gave to the Kubernetes deployment.
| ODM component | traceSpecification | traceFileName | traceFormat |
|---|---|---|---|
| Decision Center |
|
="stdout" |
="BASIC" |
| Decision Runner Decision Server Console Decision Server Runtime |
|
="stdout" |
="BASIC" |
The traceFileName description writes information to a named file
(trace.log). The traceFormat can be set to BASIC
,
ENHANCED
, or ADVANCED
formats.
The default loggers that are listed in the traceSpecification column provide a good level of messages without impacting performance.
The available log levels for tracing are off, fatal, severe, warning, audit, info, config, detail, fine, finer, finest, all. You might want to customize the log levels, for example to output less detail and enhance the execution performance. However, if you need more detail for debugging you can add loggers, either for an entire ODM component or for a single class.
For more information, see Logging and Trace.
Procedure
Results
After you change a log setting, the /config/logging/logging.xml file of the ODM container is updated.
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 ...