Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-108

Logback's TimeBasedRollingPolicy can't rename/move a file across filesystems

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.0.11
    • None
    • logback-core
    • None
    • AIX 6.1, WebSphere 8.0.0.1

    Description

      Logback can't roll log files to a different filesystem than the active log using TimeBasedRollingPolicy (and RenameUtil.rename()) on AIX and possibly other Unix/Linux-based operating systems. Per the Java 6 File.renameTo() method JavaDoc, "The rename operation might not be able to move a file from one filesystem to another". The JavaDoc for RenameUtil.rename() states that it should fall back to renaming by copying, but the code doesn't do that. The renameByCopying() method is never called.

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            djpotter Daniel Potter
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: