Thursday, August 16, 2012

Configure java logger

Basic configurations for Java Logger ( since JDK 1.4)

LoggerManager will load <JRE_HOME>/lib/logging.properties as default logging setttings. In-order to load your own logging settings,
you may need to include the following line during jvm start: 
    
     -Djava.util.logging.config.file=mylogging.properties
where mylogging.properties is my own config base on <JRE_HOME>/lib/logging.properties.


You may also do your own logging.properties during your application startup, the detail please refer to Hildeberto's BLog .