You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rp...@apache.org on 2016/08/19 07:16:13 UTC

[48/50] logging-log4j2 git commit: See (LOG4J2-905) Ability to disable (date) lookup completely, compatibility issues with other libraries like camel. Cleaner test.

See (LOG4J2-905) Ability to disable (date) lookup completely,
compatibility issues with other libraries like camel. Cleaner test.

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

Branch: refs/heads/LOG4J2-1010&LOG4J2-1447-injectable-contextdata&better-datastructure
Commit: 1ea225d50fb11c9435d0b918cb8ca58fb2ddf78f
Parents: a225781
Author: Gary Gregory <gg...@apache.org>
Authored: Thu Aug 18 23:48:59 2016 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Thu Aug 18 23:48:59 2016 -0700

----------------------------------------------------------------------
 .../logging/log4j/core/layout/PatternLayoutLookupDateTest.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/1ea225d5/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/PatternLayoutLookupDateTest.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/PatternLayoutLookupDateTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/PatternLayoutLookupDateTest.java
index c704738..f9ac304 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/PatternLayoutLookupDateTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/PatternLayoutLookupDateTest.java
@@ -18,10 +18,10 @@ public class PatternLayoutLookupDateTest {
 
     @Test
     public void testDateLookupInMessage() {
-        context.getLogger(PatternLayoutLookupDateTest.class.getName()).info("${date:now:buhu}");
+        context.getLogger(PatternLayoutLookupDateTest.class.getName()).info("${date:YYYY-MM-dd}");
         final ListAppender listAppender = context.getListAppender("List");
         final String string = listAppender.getMessages().get(0);
-        Assert.assertFalse(string, string.contains("${date:now:buhu}"));
+        Assert.assertFalse(string, string.contains("${date:YYYY-MM-dd}"));
     }
 
 }