incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r832604 - in /sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/slf4j: LogConfigManager.java PrivilegedWriter.java
Date Tue, 03 Nov 2009 23:33:16 GMT
Author: cziegeler
Date: Tue Nov  3 23:33:14 2009
New Revision: 832604

URL: http://svn.apache.org/viewvc?rev=832604&view=rev
Log:
Clean up code

Modified:
    sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/slf4j/LogConfigManager.java
    sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/slf4j/PrivilegedWriter.java

Modified: sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/slf4j/LogConfigManager.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/slf4j/LogConfigManager.java?rev=832604&r1=832603&r2=832604&view=diff
==============================================================================
--- sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/slf4j/LogConfigManager.java
(original)
+++ sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/slf4j/LogConfigManager.java
Tue Nov  3 23:33:14 2009
@@ -60,9 +60,6 @@
     // There is no ReferenceQueue handling currently for removed loggers
     private final Map<String, SoftReference<SlingLogger>> loggersByCategory;
 
-    // the logger used by this instance
-    private final Logger log;
-
     // the default logger configuration set up by the constructor and managed
     // by the global logger configuration
     private final SlingLoggerConfig defaultLoggerConfig;
@@ -123,9 +120,6 @@
             SlingLoggerLevel.INFO, defaultWriter);
         configByPid.put(LogManager.PID, defaultLoggerConfig);
         configByCategory.put(ROOT, defaultLoggerConfig);
-
-        // get me my logger
-        log = getLogger(getClass().getName());
     }
 
     /**

Modified: sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/slf4j/PrivilegedWriter.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/slf4j/PrivilegedWriter.java?rev=832604&r1=832603&r2=832604&view=diff
==============================================================================
--- sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/slf4j/PrivilegedWriter.java
(original)
+++ sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/slf4j/PrivilegedWriter.java
Tue Nov  3 23:33:14 2009
@@ -18,7 +18,6 @@
  */
 package org.apache.sling.commons.log.internal.slf4j;
 
-import java.awt.image.ImagingOpException;
 import java.io.FilterWriter;
 import java.io.IOException;
 import java.io.Writer;
@@ -31,7 +30,7 @@
     PrivilegedWriter(Writer delegatee) {
         super(delegatee);
     }
-    
+
     @Override
     public void close() throws IOException {
         try {



Mime
View raw message