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/03/04 15:22:57 UTC

[19/50] [abbrv] logging-log4j2 git commit: [LOG4J2-1299] Add pattern converter for thread id and priority in PatternLayout.

[LOG4J2-1299] Add pattern converter for thread id and priority in
PatternLayout.

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

Branch: refs/heads/LOG4J2-1278-gc-free-logger
Commit: 0d1df6929550072fab1385df0231955db651f731
Parents: e9917fd
Author: ggregory <gg...@apache.org>
Authored: Tue Mar 1 10:49:05 2016 -0800
Committer: ggregory <gg...@apache.org>
Committed: Tue Mar 1 10:49:05 2016 -0800

----------------------------------------------------------------------
 .../apache/logging/log4j/core/pattern/PatternParserTest.java  | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/0d1df692/log4j-core/src/test/java/org/apache/logging/log4j/core/pattern/PatternParserTest.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/pattern/PatternParserTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/pattern/PatternParserTest.java
index 2545f88..62ff668 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/pattern/PatternParserTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/pattern/PatternParserTest.java
@@ -259,11 +259,16 @@ public class PatternParserTest {
     }
 
     @Test
-    public void testThreadIdShortPattern() {
+    public void testThreadIdShortPattern1() {
         testThreadIdPattern("%tid");
     }
 
     @Test
+    public void testThreadIdShortPattern2() {
+        testThreadIdPattern("%T");
+    }
+
+    @Test
     public void testThreadPriorityShortPattern() {
         testThreadPriorityPattern("%tp");
     }