This topic describes the log levels that can be set in the DP log4j.properties file.
The Data Processing logger is configured with the type of information written to log files, by specifying the log level. When you specify the type, the DP logger returns all messages of that type, as well as the messages that have a higher severity. For example, if you set the message type to WARN, messages of type FATAL and ERROR are also returned.
log4j.rootLogger = FATAL, console, edpMain
In the example, the log level for the main logger is set to FATAL.
Java Log Level | ODL Log Level | Meaning |
---|---|---|
OFF | N/A | Has the highest possible rank and is used to turn off logging. |
FATAL | INCIDENT_ERROR | Indicates a serious problem that may be caused by a bug in the product and that should be reported to Oracle Support. In general, these messages describe events that are of considerable importance and which will prevent normal program execution. |
ERROR | ERROR | Indicates a serious problem that requires immediate attention from the administrator and is not caused by a bug in the product. |
WARN | WARNING | Indicates a potential problem that should be reviewed by the administrator. |
INFO | NOTIFICATION | A message level for informational messages. This level typically indicates a major lifecycle event such as the activation or deactivation of a primary sub-component or feature. This is the default level. |
DEBUG | TRACE | Debug information for events that are meaningful to administrators, such as public API entry or exit points. You should not use this level in a production environment, as performance for DP jobs will be slower. |
These levels allow you to monitor events of interest at the appropriate granularity without being overwhelmed by messages that are not relevant. When you are initially setting up your application in a development environment, you might want to use the DEBUG level to get most of the messages, and change to a less verbose level in production.
./bdd-admin.sh set-log-levels -l INCIDENT_ERROR -c dp
At any time, you can use the bdd-admin script with the get-log-levels command to retrieve the setting of the log4j.rootLogger package.
For usage information on both commands, see the Administrator's Guide.