You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by db...@apache.org on 2013/09/18 04:10:16 UTC

git commit: fix error in logback config files, causing INFO to spew unwantedly

Updated Branches:
  refs/heads/trunk 5fc48bd3a -> 4ba8e3c55


fix error in logback config files, causing INFO to spew unwantedly


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/4ba8e3c5
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/4ba8e3c5
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/4ba8e3c5

Branch: refs/heads/trunk
Commit: 4ba8e3c55686d064b90f8bdeb12ac73c080c527e
Parents: 5fc48bd
Author: Dave Brosius <db...@apache.org>
Authored: Tue Sep 17 22:09:42 2013 -0400
Committer: Dave Brosius <db...@apache.org>
Committed: Tue Sep 17 22:09:42 2013 -0400

----------------------------------------------------------------------
 conf/logback.xml           |  2 +-
 test/conf/logback-test.xml | 12 +++++++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/4ba8e3c5/conf/logback.xml
----------------------------------------------------------------------
diff --git a/conf/logback.xml b/conf/logback.xml
index 5f34376..96ea2d7 100644
--- a/conf/logback.xml
+++ b/conf/logback.xml
@@ -5,7 +5,7 @@
     <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
       <fileNamePattern>/var/log/cassandra/system.log.%i.zip</fileNamePattern>
       <minIndex>1</minIndex>
-      <maxIndex>50</maxIndex>
+      <maxIndex>20</maxIndex>
     </rollingPolicy>
 
     <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">

http://git-wip-us.apache.org/repos/asf/cassandra/blob/4ba8e3c5/test/conf/logback-test.xml
----------------------------------------------------------------------
diff --git a/test/conf/logback-test.xml b/test/conf/logback-test.xml
index ff953d7..15a9b76 100644
--- a/test/conf/logback-test.xml
+++ b/test/conf/logback-test.xml
@@ -4,7 +4,7 @@
     <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
       <fileNamePattern>./build/test/logs/system.log.%i.zip</fileNamePattern>
       <minIndex>1</minIndex>
-      <maxIndex>50</maxIndex>
+      <maxIndex>20</maxIndex>
     </rollingPolicy>
 
     <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
@@ -23,9 +23,19 @@
       <level>WARN</level>
     </filter>
   </appender>
+  
+  <appender name="STDOUT" target="System.out" class="ch.qos.logback.core.ConsoleAppender">
+    <encoder>
+      <pattern>%-5level %date{HH:mm:ss,SSS} %msg%n</pattern>
+    </encoder>
+    <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
+      <level>WARN</level>
+    </filter>
+  </appender>
         
   <root level="DEBUG">
     <appender-ref ref="FILE" />
     <appender-ref ref="STDERR" />
+    <appender-ref ref="STDOUT" />
   </root>
 </configuration>
\ No newline at end of file