log4j, how do operations to log file
1 posts in topic
Flat View  Flat View

Posted By:   John_RockMan
Posted On:   Tuesday, February 24, 2004 08:20 AM

log4j, how do operations to log file

Hi, i am using log4j with tomcat ,
if i try to rename the log file with another process, it cannot be done since the file is being "used" by tomcat,(i fact if you try to delete the file with windows(del key) you get the error "file is being used...etc" so, is there a way of renaming file without closing tomcat, i mean, a way of telling log4j to release a while the file, so in that moment operations can be done to file?

thank you very much!

Re: log4j, how do operations to log file

Posted By:   Anonymous  
Posted On:   Wednesday, February 25, 2004 07:34 AM

Is just coping the file not enough?
Otherwise you could configure log4j to create a new log file on a time or size bases.
About | Sitemap | Contact