jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [2/2] jena git commit: Add missing LogCtl operation
Date Sat, 28 Jul 2018 08:43:48 GMT
Add missing LogCtl operation


Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/42b2ef1b
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/42b2ef1b
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/42b2ef1b

Branch: refs/heads/master
Commit: 42b2ef1b7a0a832ff0c458ff375c17db71f70de5
Parents: 7f36af4
Author: Andy Seaborne <andy@apache.org>
Authored: Sat Jul 28 09:08:38 2018 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Sat Jul 28 09:08:38 2018 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/jena/atlas/logging/LogCtl.java  | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/42b2ef1b/jena-base/src/main/java/org/apache/jena/atlas/logging/LogCtl.java
----------------------------------------------------------------------
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/logging/LogCtl.java b/jena-base/src/main/java/org/apache/jena/atlas/logging/LogCtl.java
index 46dc105..a3aa9b8 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/logging/LogCtl.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/logging/LogCtl.java
@@ -129,6 +129,14 @@ public class LogCtl {
      * Turn on a logger (all levels). Works for Log4j and Java logging as the
      * logging provider to Apache common logging or slf4j.
      */
+    static public void disable(Logger logger) {
+        setLevel(logger.getName(), "OFF") ;
+    }
+
+    /**
+     * Turn on a logger (all levels). Works for Log4j and Java logging as the
+     * logging provider to Apache common logging or slf4j.
+     */
     static public void disable(String logger) {
         setLevel(logger, "OFF") ;
     }


Mime
View raw message