Initialize Logger instances to the 'INFO' level by default

... otherwise, logging would throw an exception when trying to
determine whether the current level allows the message to be logged.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin 2013-10-25 15:37:17 -05:00
parent dba8d39e63
commit 874bf4ef4c

View File

@ -32,6 +32,7 @@ public class Logger {
if (name.equals("")) return rootLogger;
Logger logger = new Logger(name);
logger.parent = rootLogger;
logger.setLevel(Level.INFO);
return logger;
}