diff -r f2293e8566f5 -r 7e527fdf0fa8 org/sonews/util/Log.java --- a/org/sonews/util/Log.java Thu Aug 20 18:41:21 2009 +0200 +++ b/org/sonews/util/Log.java Fri Aug 21 17:33:15 2009 +0200 @@ -39,8 +39,10 @@ { Logger mainLogger = Logger.getLogger(MAIN); StreamHandler handler = new StreamHandler(System.out, new SimpleFormatter()); - handler.setLevel(Level.parse(Config.inst().get(Config.LOGLEVEL, "INFO"))); + Level level = Level.parse(Config.inst().get(Config.LOGLEVEL, "INFO")); + handler.setLevel(level); mainLogger.addHandler(handler); + mainLogger.setLevel(level); LogManager.getLogManager().addLogger(mainLogger); } @@ -51,7 +53,10 @@ public static Logger get(String name) { - return LogManager.getLogManager().getLogger(name); + Level level = Level.parse(Config.inst().get(Config.LOGLEVEL, "INFO")); + Logger logger = LogManager.getLogManager().getLogger(name); + logger.setLevel(level); + return logger; } }