[seam-commits] Seam SVN: r7448 - trunk/ui/src/main/java/org/jboss/seam/ui/facelet.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Tue Feb 19 10:23:59 EST 2008
Author: pete.muir at jboss.org
Date: 2008-02-19 10:23:59 -0500 (Tue, 19 Feb 2008)
New Revision: 7448
Modified:
trunk/ui/src/main/java/org/jboss/seam/ui/facelet/FaceletsJBossLogging.java
Log:
a few more facelets loggers
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-02-19 14:49:31 UTC (rev 7447)
+++ trunk/ui/src/main/java/org/jboss/seam/ui/facelet/FaceletsJBossLogging.java 2008-02-19 15:23:59 UTC (rev 7448)
@@ -105,6 +105,20 @@
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);
+
}
catch (Exception e)
{
@@ -112,11 +126,16 @@
}
}
- private Logger getPrivateStaticLogger(Class clazz, String fieldName)
+ private Logger getPrivateStaticLogger(Class clazz, String fieldName) throws Exception
{
Field field = Reflections.getField(clazz, fieldName);
field.setAccessible(true);
- return (Logger) Reflections.getAndWrap(field, new Object());
+ return (Logger) Reflections.get(field, new Object());
}
+ private Logger getPrivateStaticLogger(String className, String fieldName) throws Exception
+ {
+ return getPrivateStaticLogger(Reflections.classForName(className), fieldName);
+ }
+
}
More information about the seam-commits
mailing list