|
|
@@ -63,18 +63,7 @@ public class OhmLogger |
|
|
|
Properties properties = new Properties(); |
|
|
|
properties.load(configFile); |
|
|
|
java.util.logging.Level classLogLevel = java.util.logging.Level.parse(properties.getProperty("log.level")); |
|
|
|
lg.setLevel(classLogLevel); |
|
|
|
|
|
|
|
//// Lese spezifische Level für einzelne Klassen aus der Properties-Datei |
|
|
|
// for (String key : properties.stringPropertyNames()) { |
|
|
|
// if (key.startsWith("log.level.")) { |
|
|
|
// String className = key.substring("log.level.".length()); |
|
|
|
// Logger classLogger = Logger.getLogger(className); |
|
|
|
// java.util.logging.Level classLogLevel = java.util.logging.Level.parse(properties.getProperty(key)); |
|
|
|
// classLogger.setLevel(classLogLevel); |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
lg.setLevel(classLogLevel); |
|
|
|
|
|
|
|
} else { |
|
|
|
System.err.println("Unable to find config.properties file. OhmLogger will use default settings."); |