[tor-commits] [onionoo/master] Re-apply log config fixes from #13362.

karsten at torproject.org karsten at torproject.org
Mon Jun 15 09:17:39 UTC 2015


commit c424018a70c22c72f27c7682d6b94c481d33cee3
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Mon Jun 15 10:29:51 2015 +0200

    Re-apply log config fixes from #13362.
    
    These fixes somehow got lost in b4d4121 when we deleted one of two
    logback.xml files.
    
    Spotted by leeroy.  Thanks!
---
 etc/logback.xml |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/etc/logback.xml b/etc/logback.xml
index ac41b64..19ae9f7 100644
--- a/etc/logback.xml
+++ b/etc/logback.xml
@@ -9,13 +9,13 @@
   <property name="filestatistics-logname" value="${logfile-base}statistics" />
 
   <!-- date pattern -->
-  <property name="utc-date-pattern" value="%date{yyyy-MM-dd HH:mm:ss, UTC}" />
+  <property name="utc-date-pattern" value="%date{ISO8601, UTC}" />
 
   <!-- appender section -->
   <appender name="FILEALL" class="ch.qos.logback.core.rolling.RollingFileAppender">
     <file>${fileall-logname}.log</file>
     <encoder>
-      <pattern>${utc-date-pattern} %level [runtime: %r] %logger{20}:%line %msg%n</pattern>
+      <pattern>${utc-date-pattern} %level %logger{20}:%line %msg%n</pattern>
     </encoder>
     <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
       <!-- rollover daily -->
@@ -32,7 +32,7 @@
   <appender name="FILEERR" class="ch.qos.logback.core.FileAppender">
     <file>${fileerr-logname}.log</file>
     <encoder>
-      <pattern>${utc-date-pattern} %level %logger{30}(%line): %msg%n</pattern>
+      <pattern>${utc-date-pattern} %level %logger{20}:%line %msg%n</pattern>
     </encoder>
 
     <!-- ERROR or worse -->
@@ -44,7 +44,7 @@
   <appender name="FILESTATISTICS" class="ch.qos.logback.core.FileAppender">
     <file>${filestatistics-logname}.log</file>
     <encoder>
-      <pattern>${utc-date-pattern} [runtime: %r] %msg%n</pattern>
+      <pattern>${utc-date-pattern} %msg%n</pattern>
     </encoder>
 
     <!-- only INFO level -->



More information about the tor-commits mailing list