You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by mi...@apache.org on 2016/06/30 08:42:29 UTC

[1/6] logging-log4j2 git commit: Incomplete test to illustrate LOG4J2-1452

Repository: logging-log4j2
Updated Branches:
  refs/heads/LOG4J-1181 2e8adc31c -> c6c494813


Incomplete test to illustrate LOG4J2-1452


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

Branch: refs/heads/LOG4J-1181
Commit: 723040dc9d433e94eca9a147e629dc32a8bfb152
Parents: da3550d
Author: Mikael St�ldal <mi...@magine.com>
Authored: Wed Jun 29 21:39:24 2016 +0200
Committer: Mikael St�ldal <mi...@magine.com>
Committed: Wed Jun 29 21:39:24 2016 +0200

----------------------------------------------------------------------
 .../logging/log4j/core/FlowTracingTest.java     | 44 ++++++++++++++++++++
 .../src/test/resources/FlowTracingTest.xml      | 16 +++++++
 2 files changed, 60 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/723040dc/log4j-core/src/test/java/org/apache/logging/log4j/core/FlowTracingTest.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/FlowTracingTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/FlowTracingTest.java
new file mode 100644
index 0000000..feef612
--- /dev/null
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/FlowTracingTest.java
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache license, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the license for the specific language governing permissions and
+ * limitations under the license.
+ */
+package org.apache.logging.log4j.core;
+
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.core.config.ConfigurationFactory;
+import org.apache.logging.log4j.message.EntryMessage;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ * Incomplete test to illustrate LOG4J2-1452.
+ */
+public class FlowTracingTest {
+
+    @BeforeClass
+    public static void beforeClass() {
+        System.setProperty(ConfigurationFactory.CONFIGURATION_FILE_PROPERTY, "FlowTracingTest.xml");
+    }
+
+    @Test
+    public void testFlowTracing() throws Exception {
+        final org.apache.logging.log4j.Logger logger = LogManager.getLogger("com.foo.Bar");
+
+        EntryMessage entryMessage = logger.traceEntry(logger.getMessageFactory().newMessage("the entry"));
+        logger.info("something else");
+        logger.traceExit(entryMessage);
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/723040dc/log4j-core/src/test/resources/FlowTracingTest.xml
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/resources/FlowTracingTest.xml b/log4j-core/src/test/resources/FlowTracingTest.xml
new file mode 100644
index 0000000..8b4c257
--- /dev/null
+++ b/log4j-core/src/test/resources/FlowTracingTest.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Configuration status="ERROR">
+  <Appenders>
+    <Console name="Console">
+      <PatternLayout>
+        <Pattern>%p %c{1} %m%n</Pattern>
+      </PatternLayout>
+    </Console>
+  </Appenders>
+  
+  <Loggers>
+    <Root level="trace">
+      <AppenderRef ref="Console"/>
+    </Root>
+  </Loggers>
+</Configuration>
\ No newline at end of file


[6/6] logging-log4j2 git commit: Fix Scaladoc

Posted by mi...@apache.org.
Fix Scaladoc


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

Branch: refs/heads/LOG4J-1181
Commit: c6c494813ddc044d93315346dcc28f3c76e047eb
Parents: 567acc7
Author: Mikael St�ldal <mi...@magine.com>
Authored: Thu Jun 30 10:42:21 2016 +0200
Committer: Mikael St�ldal <mi...@magine.com>
Committed: Thu Jun 30 10:42:21 2016 +0200

----------------------------------------------------------------------
 .../main/scala/org/apache/logging/log4j/scala/Logger.scala   | 8 ++++----
 .../main/scala/org/apache/logging/log4j/scala/Logger.scala   | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/c6c49481/log4j-api-scala_2.10/src/main/scala/org/apache/logging/log4j/scala/Logger.scala
----------------------------------------------------------------------
diff --git a/log4j-api-scala_2.10/src/main/scala/org/apache/logging/log4j/scala/Logger.scala b/log4j-api-scala_2.10/src/main/scala/org/apache/logging/log4j/scala/Logger.scala
index 4999bdb..2f78ba0 100644
--- a/log4j-api-scala_2.10/src/main/scala/org/apache/logging/log4j/scala/Logger.scala
+++ b/log4j-api-scala_2.10/src/main/scala/org/apache/logging/log4j/scala/Logger.scala
@@ -417,7 +417,7 @@ class Logger private(val delegate: ExtendedLogger) {
     *
     * Note that passing in `Level.OFF` always returns `true`.
     *
-    * @param level the level to check
+    * @param level the Level to check
     * @return boolean - `true` if this Logger is enabled for the level, `false` otherwise
     */
   def isEnabled(level: Level): Boolean = delegate.isEnabled(level)
@@ -425,9 +425,9 @@ class Logger private(val delegate: ExtendedLogger) {
   /**
     * Checks whether this Logger is enabled for the the given `Level` and `Marker`.
     *
-    * @param level  the level to check
-    * @param marker The marker to check
-    * @return boolean - `true` if this Logger is enabled for the level, `false` otherwise
+    * @param level  the Level to check
+    * @param marker the Marker to check
+    * @return boolean - `true` if this Logger is enabled for the level and marker, `false` otherwise
     */
   def isEnabled(level: Level, marker: Marker): Boolean = delegate.isEnabled(level, marker)
 

http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/c6c49481/log4j-api-scala_2.11/src/main/scala/org/apache/logging/log4j/scala/Logger.scala
----------------------------------------------------------------------
diff --git a/log4j-api-scala_2.11/src/main/scala/org/apache/logging/log4j/scala/Logger.scala b/log4j-api-scala_2.11/src/main/scala/org/apache/logging/log4j/scala/Logger.scala
index 4999bdb..2f78ba0 100644
--- a/log4j-api-scala_2.11/src/main/scala/org/apache/logging/log4j/scala/Logger.scala
+++ b/log4j-api-scala_2.11/src/main/scala/org/apache/logging/log4j/scala/Logger.scala
@@ -417,7 +417,7 @@ class Logger private(val delegate: ExtendedLogger) {
     *
     * Note that passing in `Level.OFF` always returns `true`.
     *
-    * @param level the level to check
+    * @param level the Level to check
     * @return boolean - `true` if this Logger is enabled for the level, `false` otherwise
     */
   def isEnabled(level: Level): Boolean = delegate.isEnabled(level)
@@ -425,9 +425,9 @@ class Logger private(val delegate: ExtendedLogger) {
   /**
     * Checks whether this Logger is enabled for the the given `Level` and `Marker`.
     *
-    * @param level  the level to check
-    * @param marker The marker to check
-    * @return boolean - `true` if this Logger is enabled for the level, `false` otherwise
+    * @param level  the Level to check
+    * @param marker the Marker to check
+    * @return boolean - `true` if this Logger is enabled for the level and marker, `false` otherwise
     */
   def isEnabled(level: Level, marker: Marker): Boolean = delegate.isEnabled(level, marker)
 


[3/6] logging-log4j2 git commit: Remove incomplete test

Posted by mi...@apache.org.
Remove incomplete 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/ae2d5e35
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/ae2d5e35
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/ae2d5e35

Branch: refs/heads/LOG4J-1181
Commit: ae2d5e35ae43bfc00519828edd4fe3b2eee4760b
Parents: eee2e47
Author: Mikael St�ldal <mi...@magine.com>
Authored: Thu Jun 30 10:29:20 2016 +0200
Committer: Mikael St�ldal <mi...@magine.com>
Committed: Thu Jun 30 10:29:20 2016 +0200

----------------------------------------------------------------------
 log4j-core/src/test/resources/FlowTracingTest.xml | 16 ----------------
 1 file changed, 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/ae2d5e35/log4j-core/src/test/resources/FlowTracingTest.xml
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/resources/FlowTracingTest.xml b/log4j-core/src/test/resources/FlowTracingTest.xml
deleted file mode 100644
index 8b4c257..0000000
--- a/log4j-core/src/test/resources/FlowTracingTest.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Configuration status="ERROR">
-  <Appenders>
-    <Console name="Console">
-      <PatternLayout>
-        <Pattern>%p %c{1} %m%n</Pattern>
-      </PatternLayout>
-    </Console>
-  </Appenders>
-  
-  <Loggers>
-    <Root level="trace">
-      <AppenderRef ref="Console"/>
-    </Root>
-  </Loggers>
-</Configuration>
\ No newline at end of file


[2/6] logging-log4j2 git commit: Remove incomplete test

Posted by mi...@apache.org.
Remove incomplete 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/eee2e47e
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/eee2e47e
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/eee2e47e

Branch: refs/heads/LOG4J-1181
Commit: eee2e47ece5036f6e4dd1b198b4ae634fe735df9
Parents: 723040d
Author: Mikael St�ldal <mi...@magine.com>
Authored: Thu Jun 30 10:28:46 2016 +0200
Committer: Mikael St�ldal <mi...@magine.com>
Committed: Thu Jun 30 10:28:46 2016 +0200

----------------------------------------------------------------------
 .../logging/log4j/core/FlowTracingTest.java     | 44 --------------------
 1 file changed, 44 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/eee2e47e/log4j-core/src/test/java/org/apache/logging/log4j/core/FlowTracingTest.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/FlowTracingTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/FlowTracingTest.java
deleted file mode 100644
index feef612..0000000
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/FlowTracingTest.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache license, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the license for the specific language governing permissions and
- * limitations under the license.
- */
-package org.apache.logging.log4j.core;
-
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.core.config.ConfigurationFactory;
-import org.apache.logging.log4j.message.EntryMessage;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-/**
- * Incomplete test to illustrate LOG4J2-1452.
- */
-public class FlowTracingTest {
-
-    @BeforeClass
-    public static void beforeClass() {
-        System.setProperty(ConfigurationFactory.CONFIGURATION_FILE_PROPERTY, "FlowTracingTest.xml");
-    }
-
-    @Test
-    public void testFlowTracing() throws Exception {
-        final org.apache.logging.log4j.Logger logger = LogManager.getLogger("com.foo.Bar");
-
-        EntryMessage entryMessage = logger.traceEntry(logger.getMessageFactory().newMessage("the entry"));
-        logger.info("something else");
-        logger.traceExit(entryMessage);
-    }
-
-}


[5/6] logging-log4j2 git commit: Merge branch 'master' into LOG4J-1181

Posted by mi...@apache.org.
Merge branch 'master' into LOG4J-1181


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

Branch: refs/heads/LOG4J-1181
Commit: 567acc716f6d458b68611ecbec9e9c706f8802d5
Parents: 2e8adc3 3d3a30c
Author: Mikael St�ldal <mi...@magine.com>
Authored: Thu Jun 30 10:39:10 2016 +0200
Committer: Mikael St�ldal <mi...@magine.com>
Committed: Thu Jun 30 10:39:10 2016 +0200

----------------------------------------------------------------------
 log4j-api/src/main/java/org/apache/logging/log4j/Logger.java | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------



[4/6] logging-log4j2 git commit: Remove dubious doc

Posted by mi...@apache.org.
Remove dubious doc


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

Branch: refs/heads/LOG4J-1181
Commit: 3d3a30c8b7fb419c94df99f134110fac8f1335d1
Parents: ae2d5e3
Author: Mikael St�ldal <mi...@magine.com>
Authored: Thu Jun 30 10:38:36 2016 +0200
Committer: Mikael St�ldal <mi...@magine.com>
Committed: Thu Jun 30 10:38:36 2016 +0200

----------------------------------------------------------------------
 log4j-api/src/main/java/org/apache/logging/log4j/Logger.java | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/3d3a30c8/log4j-api/src/main/java/org/apache/logging/log4j/Logger.java
----------------------------------------------------------------------
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/Logger.java b/log4j-api/src/main/java/org/apache/logging/log4j/Logger.java
index 30f0d59..f59d7dd 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/Logger.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/Logger.java
@@ -2329,9 +2329,6 @@ public interface Logger {
 
     /**
      * Checks whether this Logger is enabled for the given Level and Marker.
-     * <p>
-     * Note that passing in {@link Level#OFF OFF} always returns {@code true}.
-     * </p>
      *
      * @param level The Level to check
      * @param marker The Marker to check