public static void setLevel ( Class < ? > c , Level l ) /* throws LoggerNotDefined */ { if ( ! loggers . containsKey ( c ) ) tempLevels . put ( c , l ) ; else loggers . get ( c ) . setLevel ( l ) ; //System.out.println("Set level " + l + " for logger " + loggers.get(c).getName()); }
Set a desired log level for a specific class .