[Schmitzm-commits] r1380 - in trunk: src/schmitzm/lang src_junit/schmitzm/junit

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Jan 25 21:24:58 CET 2011


Author: alfonx
Date: 2011-01-25 21:24:57 +0100 (Tue, 25 Jan 2011)
New Revision: 1380

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	2011-01-25 19:22:00 UTC (rev 1379)
+++ trunk/src/schmitzm/lang/LangUtil.java	2011-01-25 20:24:57 UTC (rev 1380)
@@ -1432,7 +1432,7 @@
 		// 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("org.hibernate").setLevel(Level.WARN);
 		Logger.getLogger("net.sf.ehcache.hibernate").setLevel(Level.WARN);
 
 		if (Logger.getRootLogger().getAllAppenders().hasMoreElements())
@@ -1451,7 +1451,7 @@
 		// 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("org.hibernate").setLevel(Level.WARN);
 		Logger.getLogger("net.sf.ehcache.hibernate").setLevel(Level.WARN);
 
 	}
@@ -1472,7 +1472,7 @@
 			return Logger.getLogger(((Class) object).getName());
 		return Logger.getLogger(object.getClass().getName());
 	}
-	
+
 	/**
 	 * Erzeugt einen Error- und einen Debug-Eintrag in einem Logger. Der
 	 * Error-Eintrag erhaelt nur die Meldung, der Debug-Eintrag auch die

Modified: trunk/src_junit/schmitzm/junit/TestingClass.java
===================================================================
--- trunk/src_junit/schmitzm/junit/TestingClass.java	2011-01-25 19:22:00 UTC (rev 1379)
+++ trunk/src_junit/schmitzm/junit/TestingClass.java	2011-01-25 20:24:57 UTC (rev 1380)
@@ -2,7 +2,6 @@
 
 import org.apache.log4j.Logger;
 
-import schmitzm.lang.LangUtil;
 import schmitzm.swing.TestingUtil;
 
 /**
@@ -18,7 +17,7 @@
 	}
 
 	/** Logger for our testing classes. */
-	protected Logger log = LangUtil.createLogger(this);
+	protected static Logger log = Logger.getLogger(TestingClass.class);
 
 	/**
 	 * @return Description of current memory status (e.g. "12/64MB free")



More information about the Schmitzm-commits mailing list