From b305105ed3f9b7a131fe2cbb09c44055942c76e9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Ko=C5=BEusznik?= <jan@kozusznik.cz>
Date: Fri, 22 Jun 2018 15:14:23 +0200
Subject: [PATCH] configure log4j

---
 .../src/main/resources/.gitignore             |  1 +
 .../src/main/resources/log4j.xml.template     | 20 +++++++++++++++++++
 2 files changed, 21 insertions(+)
 create mode 100644 haas-spim-benchmark/src/main/resources/log4j.xml.template

diff --git a/haas-spim-benchmark/src/main/resources/.gitignore b/haas-spim-benchmark/src/main/resources/.gitignore
index b5285f5f..3b312ebb 100644
--- a/haas-spim-benchmark/src/main/resources/.gitignore
+++ b/haas-spim-benchmark/src/main/resources/.gitignore
@@ -1 +1,2 @@
 /configuration.properties
+/log4j.xml
diff --git a/haas-spim-benchmark/src/main/resources/log4j.xml.template b/haas-spim-benchmark/src/main/resources/log4j.xml.template
new file mode 100644
index 00000000..628fd42f
--- /dev/null
+++ b/haas-spim-benchmark/src/main/resources/log4j.xml.template
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+<log4j:configuration
+	xmlns:log4j="http://jakarta.apache.org/log4j/">
+	<appender name="console"
+		class="org.apache.log4j.ConsoleAppender" >
+		<param name="Target" value="System.out" />
+		<layout class="org.apache.log4j.PatternLayout">
+			<param name="ConversionPattern" value="%-5p %c{1} - %m%n" />
+		</layout>
+	</appender>
+	<logger name="cz.it4i">
+		<level value="debug" />
+	</logger>
+	<root>
+		<priority value="info" />
+		<appender-ref ref="console" />
+	</root>
+
+</log4j:configuration>
\ No newline at end of file
-- 
GitLab