Last modified: 04 December 2024
Logging configuration
The logging system in the pdrBatcher utilises the log4j logging framework, an industry standard logging implementation offering a rich set of functionality configurable using a properties file.
The properties file defining the log4j configuration is the pdr_log4j.xml file contained in the \lib directory. The log4j configuration shipping with the pdrBatcher uses a DailyRollingFileAppender resulting in a log file being generated for each calendar day.
There are many ways to customise logging behaviour and target through the log4j framework. The details of how to configure log4j are beyond the scope of this document.
However, there are a number of useful references available at the URL https://logging.apache.org/log4j/2.x/manual/index.html.
Unless specifically needed, use separate log files for the pdrLoader and pdrBatcher, particularly when using the DailyRollingFile appender in log4j.