[seam-commits] Seam SVN: r7564 - trunk/ui/src/main/java/org/jboss/seam/ui/facelet.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Mar 13 09:43:58 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-03-13 09:43:58 -0400 (Thu, 13 Mar 2008)
New Revision: 7564

Modified:
   trunk/ui/src/main/java/org/jboss/seam/ui/facelet/FaceletsJBossLogging.java
Log:
JBSEAM-2676

Modified: trunk/ui/src/main/java/org/jboss/seam/ui/facelet/FaceletsJBossLogging.java
===================================================================
--- trunk/ui/src/main/java/org/jboss/seam/ui/facelet/FaceletsJBossLogging.java	2008-03-13 12:36:39 UTC (rev 7563)
+++ trunk/ui/src/main/java/org/jboss/seam/ui/facelet/FaceletsJBossLogging.java	2008-03-13 13:43:58 UTC (rev 7564)
@@ -34,35 +34,6 @@
 {
    
    private LogProvider log = Logging.getLogProvider(FaceletsJBossLogging.class);
-
-   public static void setLevel(java.util.logging.Logger julLogger)
-   {
-       org.apache.log4j.Logger log4jLogger = 
-           org.apache.log4j.Logger.getLogger(julLogger.getName());
-
-       julLogger.setLevel(java.util.logging.Level.OFF);
-
-       if (log4jLogger.isEnabledFor(Level.FATAL))
-           julLogger.setLevel(java.util.logging.Level.SEVERE);
-
-       if (log4jLogger.isEnabledFor(Level.ERROR))
-           julLogger.setLevel(java.util.logging.Level.SEVERE);
-
-       if (log4jLogger.isEnabledFor(Level.WARN))
-           julLogger.setLevel(java.util.logging.Level.WARNING);
-
-       if (log4jLogger.isEnabledFor(Level.INFO))
-           julLogger.setLevel(java.util.logging.Level.INFO);
-
-       if (log4jLogger.isEnabledFor(Level.DEBUG)) 
-           julLogger.setLevel(java.util.logging.Level.FINE);
-
-       if (log4jLogger.isEnabledFor(Level.DEBUG))
-           julLogger.setLevel(java.util.logging.Level.FINEST);
-
-       if (log4jLogger.isEnabledFor(Level.ALL))
-           julLogger.setLevel(java.util.logging.Level.ALL);
-   }
    
    @SuppressWarnings("deprecation")
    @Create
@@ -89,45 +60,35 @@
          // And some aren't static, so this really is best effort
          
          julLogger = getPrivateStaticLogger(TagLibraryConfig.class, "log");
-         setLevel(julLogger);
          julLogger.setFilter(conversionFilter);
          
          julLogger = getPrivateStaticLogger(com.sun.facelets.compiler.Compiler.class, "log");
-         setLevel(julLogger);
          julLogger.setFilter(conversionFilter);
          
          julLogger = getPrivateStaticLogger(DefaultFaceletFactory.class, "log");
-         setLevel(julLogger);
          julLogger.setFilter(conversionFilter);
          
          julLogger = getPrivateStaticLogger(TagLibraryConfig.class, "log");
-         setLevel(julLogger);
          julLogger.setFilter(conversionFilter);
          
          julLogger = getPrivateStaticLogger(ComponentHandler.class, "log");
-         setLevel(julLogger);
          julLogger.setFilter(conversionFilter);
          
          julLogger = getPrivateStaticLogger(Resource.class, "log");
-         setLevel(julLogger);
          julLogger.setFilter(conversionFilter);
          
          julLogger = getPrivateStaticLogger(FaceletViewHandler.class, "log");
-         setLevel(julLogger);
          julLogger.setFilter(conversionFilter);
          
          // These ones are in a package-scoped class
          
          julLogger = getPrivateStaticLogger("com.sun.facelets.compiler.CompilationManager", "log");
-         setLevel(julLogger);
          julLogger.setFilter(conversionFilter);    
          
          julLogger = getPrivateStaticLogger("com.sun.facelets.tag.jsf.ComponentRule", "log");
-         setLevel(julLogger);
          julLogger.setFilter(conversionFilter);
          
          julLogger = getPrivateStaticLogger("com.sun.facelets.tag.MetaRulesetImpl", "log");
-         setLevel(julLogger);
          julLogger.setFilter(conversionFilter);
          
       }




More information about the seam-commits mailing list