Exemplo n.º 1
0
 /** 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;
 }
Exemplo n.º 2
0
 /** Align log-level of given logger to the root logger's level. */
 public static void alignLevel(final LoggerIf l) {
   alignLevel(l, rootPackageLogger.getLevel());
 }