[Schmitzm-commits] r1309 - in trunk: src/schmitzm/lang src_junit/schmitzm/junit
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Nov 24 23:47:54 CET 2010
Author: alfonx
Date: 2010-11-24 23:47:54 +0100 (Wed, 24 Nov 2010)
New Revision: 1309
Modified:
trunk/src/schmitzm/lang/LangUtil.java
trunk/src_junit/schmitzm/junit/TestingClass.java
Log:
Modified: trunk/src/schmitzm/lang/LangUtil.java
===================================================================
--- trunk/src/schmitzm/lang/LangUtil.java 2010-11-24 21:57:45 UTC (rev 1308)
+++ trunk/src/schmitzm/lang/LangUtil.java 2010-11-24 22:47:54 UTC (rev 1309)
@@ -1419,6 +1419,13 @@
* pattern "%r\t%p\t%c\t%m%n" is used)
*/
public static void initializeDefaultLogger(Level logLevel, String logPattern) {
+ // Reducing the for libraries.. TODO could be
+ // Math.min(loglevel+2,LEVEL.ERROR)
+ Logger.getLogger("javax.faces").setLevel(Level.WARN);
+ Logger.getLogger("com.sun.faces").setLevel(Level.WARN);
+ Logger.getLogger("org.hibernate").setLevel(Level.WARN);
+ Logger.getLogger("net.sf.ehcache.hibernate").setLevel(Level.WARN);
+
if (Logger.getRootLogger().getAllAppenders().hasMoreElements())
return;
@@ -1431,13 +1438,6 @@
Logger.getRootLogger().addAppender(appender);
Logger.getRootLogger().setLevel(logLevel);
- // Reducing the for libraries.. TODO could be
- // Math.min(loglevel+2,LEVEL.ERROR)
- Logger.getLogger("javax.faces").setLevel(Level.WARN);
- Logger.getLogger("com.sun.faces").setLevel(Level.WARN);
- Logger.getLogger("org.hibernate").setLevel(Level.WARN);
- Logger.getLogger("net.sf.ehcache.hibernate").setLevel(Level.WARN);
-
}
/**
Modified: trunk/src_junit/schmitzm/junit/TestingClass.java
===================================================================
--- trunk/src_junit/schmitzm/junit/TestingClass.java 2010-11-24 21:57:45 UTC (rev 1308)
+++ trunk/src_junit/schmitzm/junit/TestingClass.java 2010-11-24 22:47:54 UTC (rev 1309)
@@ -14,7 +14,7 @@
// instantiate TestingUtil to initialize the Log4J appender
static {
new TestingUtil();
- }
+ }
/** Logger for our testing classes. */
protected Logger log = LangUtil.createLogger(this);
More information about the Schmitzm-commits
mailing list