Thread: log4j
View Single Post
  #6 (permalink)  
Old 01-21-2008, 09:49 AM
roots's Avatar
roots roots is offline
Moderator
 
Join Date: Jan 2008
Location: Dallas
Posts: 251
roots is on a distinguished road
The config above rolls over the log file every next minute. First thing you need to make sure is that whether Log4J system is properly initialized or not. Atleast you need to see the log file created and rolled over every minute. After that we can simply remove minute and hour arguments to make it to be rolled midnight.

PropertyConfigurator.configure("config.properties" );

This code configures the log4J system. Plus to that make sure that the file name you are giving can be created if necessary.

Please be certain on above two things that log4j is properly initialized and the log4j file is accessable. We can proceed after that.
__________________
dont worry newbie, we got you covered.
Reply With Quote