This content has been marked as final.
Show 2 replies
-
1. Re: log4j does not create new file if it has been deleted, w
jaikiran Sep 20, 2007 7:18 AM (in response to namitak)This is a log4j question than JBoss. You might find an answer at Log4j Users Mailing list (log4j-user@logging.apache.org)
-
2. Re: log4j does not create new file if it has been deleted, w
peterj Sep 21, 2007 8:02 PM (in response to namitak)Most operating systems, when you ask them to delete a file that is in use (like the log file), remove the file from the file system, but physically it is still on disk and the program using it can still access it. In other words, log4j is still assessing and writing to the log file, even after you delete the file. Therefore, there is no way for log4j to tell that you have deleted the file.
You could look at the jboss.system:service=Logging,type=Log4jService MBean, using the stop and start operations might let you do what you are trying to do.