[logback-user] directories not being created during rollover

Travis Hume thume at brightcove.com
Thu Mar 10 23:22:12 CET 2011


So close ...

I'm programmatically building a logger and having some problems with
logs being rolled correctly.
The RollingFileAppender is configured like:
  fileName = "log/collector-events.log"
  rollingPolicy.fileNamePattern =
"log/%d{yyyy/MM/dd/kk:mm}_collector-events_%i.log.gz

Additionally, I've configured a SizeAndTimeBasedFNATP to trigger at a
certain size.

>From my reading and re-reading of the docs I'd expect
log/collector-events.log to be rolled to
log/2011/03/10/14:18_collector-events_0.log.gz

Instead every minute I get a new file that looks like:
log/collector-events.log82891979435328.tmp

I've tried removing the compression (.gz) and standard configuration
(logback.groovy) with the same result.


I'm developing with logback-classic v0.9.28 on Ubuntu 10.10 and Java 1.6.0_21


thanks

--
Travis Hume | Senior Software Engineer | Brightcove Inc.
200 West Mercer Street, Suite 204 | Seattle, WA 98119


More information about the Logback-user mailing list