]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.logback.configuration/logback.xml
Adding configuration logging for Simantics platform with SLF4J and
[simantics/platform.git] / bundles / org.simantics.logback.configuration / logback.xml
diff --git a/bundles/org.simantics.logback.configuration/logback.xml b/bundles/org.simantics.logback.configuration/logback.xml
new file mode 100644 (file)
index 0000000..38dc393
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+
+  <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
+    <!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
+    <encoder>
+      <pattern>%-5p [%d] %c: %m%n%rEx</pattern>
+    </encoder>
+  </appender>
+
+  <appender name="async-console" class="ch.qos.logback.classic.AsyncAppender">
+    <appender-ref ref="console" />
+  </appender>
+
+  <root level="debug">
+    <appender-ref ref="async-console" />
+  </root>
+</configuration>
\ No newline at end of file