
Correct. The if(getParentsRawFileProperty != null) property is insufficient if the user only specifies a FileNamePattern but not the File property. Specifying only the FileNamePattern property is perfectly legal by the way. paha wrote:
Sorry, it doesn't work either. Till now i found the following problem
In TimeBasedRollingPolicy.java at start() there is a check where modification date of the file is inspected
if (getParentsRawFileProperty() != null)
at this point the result is always null. At FileAppender<E> the name of the log file seems to be filled from configuration later than the check is run. That's why modification time of the file is not retrieved, an file is never rolled over.
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch