LOG4J2-435 bugfix

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/71cb1ced
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/71cb1ced
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/71cb1ced

Branch: refs/heads/master
Commit: 71cb1ceda957ca3e4aa1bb648958631f59dc258a
Parents: 2ae1f57
Author: rpopma <[email protected]>
Authored: Sun Nov 15 21:21:40 2015 +0900
Committer: rpopma <[email protected]>
Committed: Sun Nov 15 21:21:40 2015 +0900

----------------------------------------------------------------------
 .../logging/log4j/core/appender/rolling/action/IfFileName.java     | 2 +-
 log4j-core/src/test/resources/log4j-rolling-with-custom-delete.xml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/71cb1ced/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/IfFileName.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/IfFileName.java
 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/IfFileName.java
index 9b3810c..dacf118 100644
--- 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/IfFileName.java
+++ 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/IfFileName.java
@@ -36,7 +36,7 @@ import org.apache.logging.log4j.status.StatusLogger;
  * <p>
  * The path pattern may contain '?' and '*' wildcarts.
  */
-@Plugin(name = "FileNameFilter", category = "Core", printObject = true)
+@Plugin(name = "IfFileName", category = "Core", printObject = true)
 public final class IfFileName implements PathCondition {
     private static final Logger LOGGER = StatusLogger.getLogger();
     private final Pattern regex;

http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/71cb1ced/log4j-core/src/test/resources/log4j-rolling-with-custom-delete.xml
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/resources/log4j-rolling-with-custom-delete.xml 
b/log4j-core/src/test/resources/log4j-rolling-with-custom-delete.xml
index cb157a3..b93484d 100644
--- a/log4j-core/src/test/resources/log4j-rolling-with-custom-delete.xml
+++ b/log4j-core/src/test/resources/log4j-rolling-with-custom-delete.xml
@@ -37,7 +37,7 @@
       <DefaultRolloverStrategy stopCustomActionsOnError="true">
     <!-- custom action executed asynchronously after the rollover -->
         <Delete basePath="${base}/test" maxDepth="2" followLinks="false">
-          <FileNameFilter path="test-4.log.gz" /> <!-- only keep files 1, 2 
and 3 -->
+          <IfFileName path="test-4.log.gz" /> <!-- only keep files 1, 2 and 3 
-->
         </Delete>
       </DefaultRolloverStrategy>
     </RollingFile>

Reply via email to