diff --git a/logback-core/src/main/java/ch/qos/logback/core/rolling/RollingFileAppender.java b/logback-core/src/main/java/ch/qos/logback/core/rolling/RollingFileAppender.java index 94770ff15e..0a119cb350 100755 --- a/logback-core/src/main/java/ch/qos/logback/core/rolling/RollingFileAppender.java +++ b/logback-core/src/main/java/ch/qos/logback/core/rolling/RollingFileAppender.java @@ -145,7 +145,7 @@ private boolean innerCheckForFileNamePatternCollisionInPreviousRFA(FileNamePatte } } if (name != null) { - map.put(getName(), fileNamePattern); + map.put(name, fileNamePattern); } return collisionsDetected; }