Monday, 28 October 2013

Log4j Configuration Now as Part of Code

I've chosen to move the configuration of the logger, log4j, into the code and not use the log4j.properties file. However, this is only a temporary move for ease of management. When the code is 'finished' the configuration will be moved out again into the properties file where it is best kept.

Looking ahead, familiarity with the property file usage is likely to be important. It is envisaged that a property file will be used as the means of configuring the software and by so doing avoid having to create a configuration entry form.

The reference source for the in line configuration was found here.  

http://www.avajava.com/tutorials/lessons/how-do-i-configure-log4j-with-properties.html?page=1

The modified code can be found here.

No comments:

Post a Comment