[logback-user] Log file ot created

Paolo Di Tommaso paolo.ditommaso at gmail.com
Sun Feb 14 10:37:55 UTC 2016


Hi,

After upgrading from Logback 1.1.3 to version 1.1.5 I've noticed that it
isn't creating the log file any more.

I'm using a RollingFileAppender configured using a piece of code like this:



RollingFileAppender result = logFileName ? new RollingFileAppender() : null
result.file = logFileName

def rollingPolicy = new  FixedWindowRollingPolicy( )
rollingPolicy.fileNamePattern = "${logFileName}.%i"
rollingPolicy.setContext(loggerContext)
rollingPolicy.setParent(result)
rollingPolicy.setMinIndex(1)
rollingPolicy.setMaxIndex(9)
rollingPolicy.start()

result.rollingPolicy = rollingPolicy
result.encoder = createEncoder()
result.setContext(loggerContext)
result.setTriggeringPolicy(new RollOnStartupPolicy())
result.start()



Something has changed that logic ?


Cheers,
Paolo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20160214/fb801201/attachment.html>


More information about the logback-user mailing list