Well, I would have to double check, but I would say that whenever a String created by formatting the current date with a change in the format string jumps. This means: if you format the date using "yyyy-MM-dd", the result will change every day. This will also happen only with "dd", BUT you will get the same file name every month, so the files will either be overwritten or added, or it will fail because the file already exists (not sure if this is true, depends on what the appender is doing, I think in this case the logs will be added, except maybe for gzip).
Edit:
Example: if you have mylog.%d{dd}.log , the final log file for today (2011-03-27) is named mylog.25.log (due to the formatting of the new date () when logging) and will add messages to this file. Tomorrow, the file in use will now be named mylog.26.log . On April 25th you will again get the file name `mylog.25.log, therefore all logs from this day will be added to the file that already contains logs from March 25th.
source share