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