We are migrating this Jira service to Github. Issue creation is no longer possible on this server and must be done on Github. However, you may browse issues without an account. Editing or commenting on existing issues requires an account.

Please support SLF4J/logback/reload4j projects via Github donations and sponsorship.

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

Adding missing directories creation for compressed file in FixedWindowRollingPolicy

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • logback-core
    • None

    Description

      The FixedWindowRollingPolicy class does not have the same behavior between compressed file and uncompressed file.
      Indeed, if missing, the target directory is created for uncompressed file (through the util.rename method call at line 128)

            // move active file name to min
            switch (compressionMode) {
            case NONE:
              util.rename(getActiveFileName(), fileNamePattern
                  .convertInt(minIndex));
              break;
            case GZ:
            case ZIP:
              compressor.compress(getActiveFileName(), fileNamePattern.convertInt(minIndex));
              break;
      

      Missing directories are not created for rolling files using compression.
      So could you please add this feature to be in phase with uncompressed rolling file ?

      Regards

      Antoine

      Attachments

        Activity

          Loading...
          We are migrating this Jira service to Github. Issue creation is no longer possible on this server and must be done on Github. However, you may browse issues without an account. Editing or commenting on existing issues requires an account.

          Please support SLF4J/logback/reload4j projects via Github donations and sponsorship.

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

          Adding missing directories creation for compressed file in FixedWindowRollingPolicy

          Details

            • Icon: Bug Bug
            • Resolution: Unresolved
            • Icon: Major Major
            • None
            • None
            • logback-core
            • None

            Description

              The FixedWindowRollingPolicy class does not have the same behavior between compressed file and uncompressed file.
              Indeed, if missing, the target directory is created for uncompressed file (through the util.rename method call at line 128)

                    // move active file name to min
                    switch (compressionMode) {
                    case NONE:
                      util.rename(getActiveFileName(), fileNamePattern
                          .convertInt(minIndex));
                      break;
                    case GZ:
                    case ZIP:
                      compressor.compress(getActiveFileName(), fileNamePattern.convertInt(minIndex));
                      break;
              

              Missing directories are not created for rolling files using compression.
              So could you please add this feature to be in phase with uncompressed rolling file ?

              Regards

              Antoine

              Attachments

                Activity

                  People

                    logback-dev Logback dev list
                    elric Antoine
                    Votes:
                    0 Vote for this issue
                    Watchers:
                    1 Start watching this issue

                    Dates

                      Created:
                      Updated:

                      People

                        logback-dev Logback dev list
                        elric Antoine
                        Votes:
                        0 Vote for this issue
                        Watchers:
                        1 Start watching this issue

                        Dates

                          Created:
                          Updated: