Setup log4j2 config (#753)

Change-Id: I7ba74609d699ccaeb4ea985982ebebf9357b8fbf
diff --git a/Changes b/Changes
index a127806..ae7aba0 100644
--- a/Changes
+++ b/Changes
@@ -7,6 +7,7 @@
 - Change CC RE from CC-BY.* to CC.* (kupietz)
 - Unified ResourceFilters and SearchResourceFilters.
 - Fixed supported versions in the configs & changed delimiter to comma.
+- Setup log4j2 config (#753)
 
 # version 0.73.2
 
diff --git a/src/main/java/de/ids_mannheim/korap/server/KustvaktLiteServer.java b/src/main/java/de/ids_mannheim/korap/server/KustvaktLiteServer.java
index 173a424..edc5a4c 100644
--- a/src/main/java/de/ids_mannheim/korap/server/KustvaktLiteServer.java
+++ b/src/main/java/de/ids_mannheim/korap/server/KustvaktLiteServer.java
@@ -3,6 +3,8 @@
 public class KustvaktLiteServer extends KustvaktBaseServer {
 
     public static void main (String[] args) throws Exception {
+        System.setProperty("log4j.configurationFile", "data/log4j2.properties, log4j2.properties");
+        
         KustvaktLiteServer server = new KustvaktLiteServer();
         kargs = server.readAttributes(args);
 
diff --git a/src/main/java/de/ids_mannheim/korap/server/KustvaktServer.java b/src/main/java/de/ids_mannheim/korap/server/KustvaktServer.java
index 2dd0ae9..8f7d80f 100644
--- a/src/main/java/de/ids_mannheim/korap/server/KustvaktServer.java
+++ b/src/main/java/de/ids_mannheim/korap/server/KustvaktServer.java
@@ -9,6 +9,7 @@
 public class KustvaktServer extends KustvaktBaseServer {
 
     public static void main (String[] args) throws Exception {
+        System.setProperty("log4j.configurationFile", "data/log4j2.properties, log4j2.properties");
         KustvaktServer server = new KustvaktServer();
         kargs = server.readAttributes(args);