Andrunevchyn

Andrunevchyn


notes and issue research

May 2018
M T W T F S S
« Apr   Jul »
 123456
78910111213
14151617181920
21222324252627
28293031  

Categories


Logback rollover issue

Andriy AndrunevchynAndriy Andrunevchyn

If your rollover config doesn’t work due to unknown reason – read this answer. I didn’t find  why logback cannot rename log , no process locked log file. The easiest way to fix issue just  remove mentioned parameter File 

Now my default log file has ugly name like myappname-2018-05-02.0.log instead myappname.log but I didn’t find more elegant way to fix it. The weirdest thing is logback writes that information somewhere but I couldn’t find it on my log files so it took me some time to debug logback sources.

 

P.S.

Also somehow it’s linked to rollover period – it work for hourly rollover and doesn’t work for daily rollover at least in my case

Comments 0
There are currently no comments.

Leave a Reply