changeset 180:fbe20887ca9f

update config
author akahori
date Sat, 02 Feb 2019 11:40:31 +0900
parents d33253240018
children 33b4966d4d24
files build.gradle src/main/java/christie/daemon/Config.java
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/build.gradle	Fri Feb 01 19:30:58 2019 +0900
+++ b/build.gradle	Sat Feb 02 11:40:31 2019 +0900
@@ -27,6 +27,7 @@
     exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
     manifest {
         attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version
+        attributes 'Multi-Release': 'true' // https://stackoverflow.com/questions/53049346/is-log4j2-compatible-with-java-11
     }
 
     from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
--- a/src/main/java/christie/daemon/Config.java	Fri Feb 01 19:30:58 2019 +0900
+++ b/src/main/java/christie/daemon/Config.java	Sat Feb 02 11:40:31 2019 +0900
@@ -3,6 +3,7 @@
 import org.apache.logging.log4j.Level;
 import org.apache.logging.log4j.LogManager;
 import org.apache.logging.log4j.Logger;
+import org.apache.logging.log4j.core.config.Configurator;
 
 public class Config {
 
@@ -40,7 +41,7 @@
                 }
             }
         }
-
+        Configurator.setAllLevels(LogManager.getRootLogger().getName(), level);
     }
 
 }