Browse code

[core] BM-14367 Chore: split replication log to bm/replication.log

Thomas Cataldo authored on 14/03/2019 07:52:34
Showing 1 changed files
... ...
@@ -67,7 +67,28 @@
67 67
 	<logger name="net.bluemind.index.mail" level="INFO" additivity="false">
68 68
 		<appender-ref ref="MailIndex" />
69 69
 	</logger>
70
-
70
+	
71
+	<!-- Cyrus Replication -->
72
+	<appender name="Replication"
73
+		class="ch.qos.logback.core.rolling.RollingFileAppender">
74
+		<File>/var/log/bm/replication.log</File>
75
+		<encoder>
76
+			<pattern>%d [%thread] %c{1} %p - %m\n</pattern>
77
+		</encoder>
78
+        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
79
+          <fileNamePattern>/var/log/bm/replication.log.%d{yyyy-MM-dd}.gz</fileNamePattern>
80
+          <maxHistory>7</maxHistory>
81
+          <totalSizeCap>250MB</totalSizeCap>
82
+        </rollingPolicy>
83
+	</appender>
84
+	<appender name="AsyncRepl" class="ch.qos.logback.classic.AsyncAppender">
85
+      <queueSize>500</queueSize>
86
+      <discardingThreshold>0</discardingThreshold>
87
+      <appender-ref ref="Replication" />
88
+    </appender>  
89
+	<logger name="net.bluemind.backend.cyrus.replication.server" level="INFO" additivity="false">
90
+		<appender-ref ref="AsyncRepl" />
91
+	</logger>
71 92
 
72 93
 	<!-- log call -->
73 94
 	<appender name="SlowRestCall"