Last modified: 04 December 2024
Logging configuration
The logging system in pdrLoader 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.properties file contained in the \lib directory. The log4j configuration shipping with the pdrLoader product 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 http://logging.apache.org/log4j/2.x/manual/configuration.html.
The pdrLoader and pdrBatcher need to use separate log files, particularly when using the DailyRollingFileAppender in log4j.