blob: 3c8ba3497b101f1a1d4efca32a1b2854c0533e18 [file] [log] [blame]
Jordan Haltermana0c5dc12018-11-12 11:04:46 -08001<!--
2 ~ Copyright 2017-present Open Networking Foundation
3 ~
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
7 ~
8 ~ http://www.apache.org/licenses/LICENSE-2.0
9 ~
10 ~ Unless required by applicable law or agreed to in writing, software
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ~ See the License for the specific language governing permissions and
14 ~ limitations under the License.
15 -->
16<configuration>
17 <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
18 <file>${atomix.log.directory}/atomix.log</file>
19
20 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
21 <fileNamePattern>${atomix.log.directory}/atomix.log.%i</fileNamePattern>
22 <minIndex>1</minIndex>
23 <maxIndex>10</maxIndex>
24 </rollingPolicy>
25
26 <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
27 <maxFileSize>10MB</maxFileSize>
28 </triggeringPolicy>
29
30 <encoder>
31 <charset>UTF-8</charset>
32 <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
33 </encoder>
34 </appender>
35
36 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
37 <encoder>
38 <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
39 </encoder>
40 </appender>
41
42 <logger name="io.atomix" level="INFO" />
43 <logger name="io.atomix.protocols.raft" level="INFO" />
44 <logger name="io.netty.handler.logging.LoggingHandler" level="INFO"/>
45
46 <root level="INFO">
47 <appender-ref ref="FILE" />
48 <appender-ref ref="STDOUT" />
49 </root>
50</configuration>