예제 #1
0
파일: Logging.java 프로젝트: hrw/gluegen
 /** Returns the demanded logger, while aligning its log-level to the root logger's level. */
 public static synchronized LoggerIf getLogger(
     final String packageName, final String simpleClassName) {
   final String fqnClassName = packageName + "." + simpleClassName;
   LoggerIf res = loggers.get(fqnClassName);
   if (null == res) {
     res = new FQNLogger(fqnClassName, simpleClassName, rootPackageLogger.getLevel());
     loggers.put(fqnClassName, res);
   }
   return res;
 }
예제 #2
0
파일: Logging.java 프로젝트: hrw/gluegen
 /** Align log-level of given logger to the root logger's level. */
 public static void alignLevel(final LoggerIf l) {
   alignLevel(l, rootPackageLogger.getLevel());
 }