"Global", "Can't find java.util.logging.config.file=logging.properties");
}
try {
InputStream in = url.openStream();
LogManager logManager = LogManager.getLogManager();
logManager.readConfiguration(in);
in.close();
// init from command line (or xmlBlaster.properties)
synchronized (Global.class) {
if (!logIsInitialized) {
Map map = this.property.getPropertiesForContextNode(this.contextNode, ContextNode.LOGGING_MARKER_TAG, "__default");
String defVal = (String)map.get("__default");
if (defVal != null) {
try {
Level defaultLevel = Level.parse(defVal);
Logger defLogger = logManager.getLogger("");
if (defLogger != null) {
defLogger.setLevel(defaultLevel);
log.info("Setting default log level to '" + defaultLevel.getName() + "'");
}
else
log.warning("Setting default log level to '" + defaultLevel.getName() + "' failed since default log level is null");
}
catch (Throwable ex) {
log.warning("An exception occured when parsing '" + defVal + "' as a log level");
}
}
Iterator iter = map.entrySet().iterator();
Logger defLogger = logManager.getLogger("");
// Handler[] tmpHandlers = defLogger.getHandlers();
// Handler[] refHandlers = new Handler[tmpHandlers.length];
Handler[] refHandlers = defLogger.getHandlers();
for (int i=0; i < refHandlers.length; i++) {
refHandlers[i].setLevel(Level.FINEST);