示例#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());
 }