IBM InfoSphere MDM Custom Domain Hub, Version 10.1The severity of a message refers to how severe the problems is. All InfoSphere® MDM Custom Domain Hub messages are associated with a severity level.
Error codes severity levels are defined in the CDERRSEVERITYTP table. By default most problems defined for a customer do not have an explicit severity; instead, this is interpreted by the application as a fatal severity level. If the application encounters one or more errors with a severity level of fatal while executing a persistence transaction, it rolls back the transaction and returns the errors in the response.
The com.dwl.base.logging.IDWLLogger interface introduces logging severity levels. The following table shows how IDWLLogger levels are mapped to Log4J and Java™ logger levels:
| Levels in IDWLLogger | Associated level in Log4j logger | Associated level in Java logger |
|---|---|---|
| OFF FATAL ERROR WARN INFO CONFIG FINE FINER FINEST ALL |
OFF FATAL ERROR WARN INFO INFO DEBUG DEBUG DEBUG ALL |
OFF SEVERE SEVERE WARNING INFO CONFIG FINE FINER FINEST ALL |
Although there are 13 levels shown in the table, InfoSphere MDM Custom Domain Hub only uses six levels. Developers building their own extensions, additions, or external rules should follow the same guidelines when logging their messages.
Each logging API allows the level to be configured for run time to control the level of detail in the log destination. This level can be set at any level within the logger hierarchy ranging from root; that is, the global or application level, to any package, subpackage, or class level. See the respective API documentation for more information on how to do set the levels.
It is important that the level is set to an appropriate value based on the runtime environment. If the level is more granular, the level provides more detail but slows the application performance. On the other hand, only capturing the error level logs, reduces, or even eliminates, most messages with the exception of errors, making the application faster but more difficult to debug. The default level setting is an error, and the following are guidelines for runtime environment messages: