jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1512084 - /jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/logging/Log.java
Date Thu, 08 Aug 2013 22:55:50 GMT
Author: andy
Date: Thu Aug  8 22:55:49 2013
New Revision: 1512084

URL: http://svn.apache.org/r1512084
Log:
Add enable at a level by class.

Modified:
    jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/logging/Log.java

Modified: jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/logging/Log.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/logging/Log.java?rev=1512084&r1=1512083&r2=1512084&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/logging/Log.java (original)
+++ jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/logging/Log.java Thu Aug  8 22:55:49
2013
@@ -204,6 +204,11 @@ public class Log
         enable(logger, "all") ;
     }
     
+    /** Turn on a logger (specific level levels) */
+    static public void enable(Class<?> logger, String level) {
+        enable(logger.getClass().getName(), level) ;
+    }
+    
     static public void enable(String logger, String level)
     {
         org.apache.log4j.Level level1 = org.apache.log4j.Level.ALL ;



Mime
View raw message