Improve init
[lgpl/argeo-commons.git] / org.argeo.init / src / org / argeo / init / logging / ThinLoggerFinder.java
index 47cb14655e45e78b4813159577273ca36232b10a..e60d22fba1061238e20da6b0071afdfdcf03ca7a 100644 (file)
@@ -32,7 +32,13 @@ public class ThinLoggerFinder extends LoggerFinder {
 
        private static void init() {
                logging = new ThinLogging();
+               reloadConfiguration();
+       }
 
+       /** Reload configuration form system properties */
+       public static void reloadConfiguration() {
+               if (logging == null)
+                       return;
                Map<String, Object> configuration = new HashMap<>();
                for (Object key : System.getProperties().keySet()) {
                        Objects.requireNonNull(key);