LOG4J2-435 IfFileName better status log message Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/930cd8f8 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/930cd8f8 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/930cd8f8
Branch: refs/heads/LOG4J-1181 Commit: 930cd8f8f2a51af7508530cb001ee0577b8ffed1 Parents: 28af48e Author: rpopma <[email protected]> Authored: Sun Nov 29 12:02:06 2015 +0900 Committer: rpopma <[email protected]> Committed: Sun Nov 29 12:02:06 2015 +0900 ---------------------------------------------------------------------- .../logging/log4j/core/appender/rolling/action/IfFileName.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/930cd8f8/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 9bed9f7..ca67132 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 @@ -100,8 +100,8 @@ public final class IfFileName implements PathCondition { public boolean accept(final Path basePath, final Path relativePath, final BasicFileAttributes attrs) { final boolean result = pathMatcher.matches(relativePath); - final String match = result ? " " : " not "; - LOGGER.trace("IfFileName: '{}' does{}match relative path '{}'", syntaxAndPattern, match, relativePath); + final String match = result ? "matches" : "does not match"; + LOGGER.trace("IfFileName: '{}' {} relative path '{}'", syntaxAndPattern, match, relativePath); if (result) { return IfAll.accept(nestedConditions, basePath, relativePath, attrs); }
