View Single Post
  #3 (permalink)  
Old 06-06-2007, 02:54 PM
Jack Jack is offline
Senior Member
 
Join Date: Jun 2007
Posts: 130
Jack is on a distinguished road
I checked the documentation of log4j and the properties file must be in the path.
Particularly I use this code to configure it:
Code:
private static final File LOG_PROPS = new File("logger.properties"); ... if (LOG_PROPS.exists()) { PropertyConfigurator.configure(LOG_PROPS.getPath()); } else { BasicConfigurator.configure(); }
While the logger.properties file is in the directory where the application executes, it works well.
Reply With Quote