gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: avoiding having a log file


From: gnunet
Subject: [libeufin] branch master updated: avoiding having a log file
Date: Wed, 24 Jun 2020 17:11:20 +0200

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

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new f22d15b  avoiding having a log file
f22d15b is described below

commit f22d15b4ae57777fb988c00329faa94696f94c97
Author: MS <ms@taler.net>
AuthorDate: Wed Jun 24 17:10:44 2020 +0200

    avoiding having a log file
---
 nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt         |  2 --
 .../src/main/resources/{late-logback.xml => logback.xml}  | 10 ----------
 sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt     |  5 -----
 .../src/main/resources/{late-logback.xml => logback.xml}  | 15 ---------------
 4 files changed, 32 deletions(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
index f3510d5..bcf0859 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
@@ -48,11 +48,9 @@ class Serve : CliktCommand("Run nexus HTTP server") {
             helpFormatter = CliktHelpFormatter(showDefaultValues = true)
         }
     }
-    private val logFile by option()
     private val dbName by option().default("libeufin-nexus.sqlite3")
     private val host by option().default("127.0.0.1")
     override fun run() {
-        setLogFile(logFile, "nexusLogFile","late-logback.xml")
         logger = LoggerFactory.getLogger("tech.libeufin.nexus")
         serverMain(dbName, host)
     }
diff --git a/nexus/src/main/resources/late-logback.xml 
b/nexus/src/main/resources/logback.xml
similarity index 56%
rename from nexus/src/main/resources/late-logback.xml
rename to nexus/src/main/resources/logback.xml
index cd545cb..45fe192 100644
--- a/nexus/src/main/resources/late-logback.xml
+++ b/nexus/src/main/resources/logback.xml
@@ -6,15 +6,6 @@
         </encoder>
     </appender>
 
-    <property name="NEXUS_LOG_FILE" value="${nexusLogFile}" />
-    <appender name="NEXUS-FILE" class="ch.qos.logback.core.FileAppender">
-        <file>${NEXUS_LOG_FILE}</file>
-        <append>true</append>
-        <encoder>
-            <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - 
%msg%n</pattern>
-        </encoder>
-    </appender>
-
     <logger name="tech.libeufin" level="TRACE"/>
     <logger name="io.netty" level="WARN"/>
     <logger name="ktor" level="WARN"/>
@@ -22,7 +13,6 @@
 
     <root level="WARN">
         <appender-ref ref="STDOUT"/>
-        <appender-ref ref="NEXUS-FILE"/>
     </root>
 
 </configuration>
\ No newline at end of file
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt 
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index d88f010..669d447 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -58,12 +58,9 @@ import io.ktor.http.toHttpDateString
 import org.jetbrains.exposed.sql.statements.api.ExposedBlob
 import java.time.Instant
 import com.github.ajalt.clikt.core.CliktCommand
-import com.github.ajalt.clikt.core.ProgramResult
 import com.github.ajalt.clikt.core.subcommands
-import com.github.ajalt.clikt.parameters.arguments.argument
 import com.github.ajalt.clikt.parameters.options.default
 import com.github.ajalt.clikt.parameters.options.option
-import com.github.ajalt.clikt.parameters.options.prompt
 import tech.libeufin.util.*
 
 class CustomerNotFound(id: String?) : Exception("Customer ${id} not found")
@@ -84,9 +81,7 @@ class SandboxCommand : CliktCommand() {
 
 class Serve : CliktCommand("Run sandbox HTTP server") {
     private val dbName by option().default("libeufin-sandbox.sqlite3")
-    private val logFile by option()
     override fun run() {
-        setLogFile(logFile, "sandboxLogFile", "late-logback.xml")
         LOGGER = LoggerFactory.getLogger("tech.libeufin.sandbox")
         serverMain(dbName)
     }
diff --git a/sandbox/src/main/resources/late-logback.xml 
b/sandbox/src/main/resources/logback.xml
similarity index 53%
rename from sandbox/src/main/resources/late-logback.xml
rename to sandbox/src/main/resources/logback.xml
index ddff919..65ab7ad 100644
--- a/sandbox/src/main/resources/late-logback.xml
+++ b/sandbox/src/main/resources/logback.xml
@@ -5,26 +5,11 @@
         </encoder>
     </appender>
 
-    <property name="SANDBOX_LOG_FILE" value="${sandboxLogFile}" />
-    <appender name="SANDBOX-FILE" class="ch.qos.logback.core.FileAppender">
-        <file>${SANDBOX_LOG_FILE}</file>
-        <append>false</append>
-        <encoder>
-            <pattern>%-5relative %-5level %logger{35} - %msg%n</pattern>
-        </encoder>
-    </appender>
-
     <logger name="tech.libeufin.sandbox" level="DEBUG"  additivity="false">
         <appender-ref ref="STDOUT" />
         <appender-ref ref="SANDBOX-FILE" />
     </logger>
 
-    <logger name="tech.libeufin.util" level="TRACE"  additivity="false">
-        <appender-ref ref="STDOUT" />
-        <appender-ref ref="SANDBOX-FILE" />
-    </logger>
-
-
     <logger name="io.netty" level="WARN" />
     <logger name="ktor" level="WARN" />
     <logger name="Exposed" level="WARN" />

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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