gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libeufin] branch master updated: include logback configura


From: gnunet
Subject: [GNUnet-SVN] [libeufin] branch master updated: include logback configuration
Date: Tue, 08 Oct 2019 17:17:24 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 26389ed  include logback configuration
26389ed is described below

commit 26389ed2f7fd3edacf6b9ad0515b212627f06ce4
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Oct 8 17:17:15 2019 +0200

    include logback configuration
---
 nexus/src/main/resources/logback.xml          | 18 ++++++++++++++++++
 resources/{logback.xml => global-logback.xml} |  1 +
 sandbox/src/main/resources/logback.xml        | 18 ++++++++++++++++++
 sandbox/src/test/kotlin/LogTest.kt            |  2 +-
 4 files changed, 38 insertions(+), 1 deletion(-)

diff --git a/nexus/src/main/resources/logback.xml 
b/nexus/src/main/resources/logback.xml
new file mode 100644
index 0000000..b8ec80f
--- /dev/null
+++ b/nexus/src/main/resources/logback.xml
@@ -0,0 +1,18 @@
+<configuration>
+
+    <include resource="global-logback.xml" />
+
+    <appender name="FILE" class="ch.qos.logback.core.FileAppender">
+        <file>/tmp/nexus.log</file>
+        <append>false</append>
+        <encoder>
+            <pattern>%-5relative %-5level %logger{35} - %msg%n</pattern>
+        </encoder>
+    </appender>
+
+    <root level="debug">
+        <appender-ref ref="FILE" />
+    </root>
+
+
+</configuration>
\ No newline at end of file
diff --git a/resources/logback.xml b/resources/global-logback.xml
similarity index 94%
rename from resources/logback.xml
rename to resources/global-logback.xml
index 6eea430..ae85a6d 100644
--- a/resources/logback.xml
+++ b/resources/global-logback.xml
@@ -8,4 +8,5 @@
     <root level="debug">
         <appender-ref ref="STDOUT" />
     </root>
+
 </configuration>
\ No newline at end of file
diff --git a/sandbox/src/main/resources/logback.xml 
b/sandbox/src/main/resources/logback.xml
new file mode 100644
index 0000000..744c54e
--- /dev/null
+++ b/sandbox/src/main/resources/logback.xml
@@ -0,0 +1,18 @@
+<configuration>
+
+    <include resource="global-logback.xml" />
+
+    <appender name="FILE" class="ch.qos.logback.core.FileAppender">
+        <file>/tmp/sandbox.log</file>
+        <append>false</append>
+        <encoder>
+            <pattern>%-5relative %-5level %logger{35} - %msg%n</pattern>
+        </encoder>
+    </appender>
+
+    <root level="debug">
+        <appender-ref ref="FILE" />
+    </root>
+
+
+</configuration>
\ No newline at end of file
diff --git a/sandbox/src/test/kotlin/LogTest.kt 
b/sandbox/src/test/kotlin/LogTest.kt
index 3fe54fc..8e72a1e 100644
--- a/sandbox/src/test/kotlin/LogTest.kt
+++ b/sandbox/src/test/kotlin/LogTest.kt
@@ -14,7 +14,7 @@ class LogTest {
         val cl = ClassLoader.getSystemClassLoader()
         val urls = (cl as URLClassLoader).urLs
         for (url in urls) {
-            // println(url)
+            println(url)
         }
         val logger = LoggerFactory.getLogger("sandbox.log.test")
         logger.info("line")

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]