Re: [logback-user] logback RollingFileAppender problem on Windows (Server 2008, Jetty, Shibboleth IdP, procrun)

Karen, Your post didn't make it onto the mailing list, as you are not subscribed. It only made it into nabble. Try setting this system property: -Dlogback.statusListenerClass=ch.qos.logback.core.status.OnConsoleStatusListener Then logback should print out any problems it had rolling the files. Windows won't let a file be renamed if it is open. Perhaps something has the file open? What version of logback are you using? David -- View this message in context: http://logback.10977.n7.nabble.com/logback-RollingFileAppender-problem-on-Wi... Sent from the Users mailing list archive at Nabble.com.

Hi David, thanks for your reply, I will enable the listener as per your suggestion as it will be useful to see, though I believe I may now better understand the root cause of the problem - a 'long standing windows bug' with memory mapped files according to a reply I received from Jetty-Users: http://dev.eclipse.org/mhonarc/lists/jetty-users/msg03222.html and http://dev.eclipse.org/mhonarc/lists/jetty-users/msg03223.html (haven't had a reply to my last query) Thanks for your help, Karen PS, my logback version is 1.0.0 On 16/04/13 15:37, diroussel wrote:
Karen,
Your post didn't make it onto the mailing list, as you are not subscribed. It only made it into nabble.
Try setting this system property:
-Dlogback.statusListenerClass=ch.qos.logback.core.status.OnConsoleStatusListener
Then logback should print out any problems it had rolling the files. Windows won't let a file be renamed if it is open. Perhaps something has the file open?
What version of logback are you using?
David
-- View this message in context: http://logback.10977.n7.nabble.com/logback-RollingFileAppender-problem-on-Wi... Sent from the Users mailing list archive at Nabble.com. _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user
-- *Karen Murphy* Systems Analyst - Bibliographic Services The Library at Queen's Queen's University Belfast Belfast BT7 1LP Tel: 028 90976260 Email: k.l.murphy@qub.ac.uk

It could also be a virus checker that has a lock on the file, which stops it being renamed? I think you are on the right track using sysinternals Handle and Filemon, to see which process has a lock on the file at the point the roll it attempted. -- View this message in context: http://logback.10977.n7.nabble.com/logback-RollingFileAppender-problem-on-Wi... Sent from the Users mailing list archive at Nabble.com.
participants (2)
-
diroussel
-
Karen Murphy