You can configure the batch processor to use Java Development
Kit (JDK) log files, and also configure the level of detail recorded
in the logs.
About this task
JDK log files have the following predefined logging levels:
ALL
– log all messages.
FINEST
FINER
FINE
CONFIG
– log all configuration level messages
and above.
INFO
– log all informational level messages
and above.
WARNING
– log all warning level messages
and above.
SEVERE
– log only severe error messages.
OFF
– disable logging.
To configure JDK log files:
Procedure
- To set the logging type to JDK:
- Edit the DWLLog.properties file.
- Change the value of the LoggerFactory property
to
com.dwl.base.logging.DWLLog4jLoggerFactory
:
LoggerFactory=com.dwl.base.logging.DWLJDKLoggerFactory
Note: By default, Apache log4j is defined as the logging type.
- To configure the detail level of the messages that are
displayed on the console during batch processing:
- Edit the JDKLog.properties file.
- Depending on the logging level you wish to set, change
the value of the java.util.logging.FileHandler.level property
to one of the predefined logging levels.
handlers=java.util.logging.FileHandler, ,java.util.logging.ConsoleHandler
java.util.logging.FileHandler.level=SEVERE
Tip: If
you wish to turn off console output so that the user can have a clear
console, remove the console handler from the
handlers property:
handlers=java.util.logging.FileHandler
java.util.logging.FileHandler.level=SEVERE
- To configure the detail level of the messages that are
logged in the batch processing log files:
- Edit the JDKLog.properties file.
- Depending on the logging level you wish to set for each
log file type, change the value of the following logging level properties
to one of the predefined logging levels: