blob: 3877f658d7af875578ffb0a741e69bc85d08a609 [file] [log] [blame]
Jonathan Hartb5ad4612013-09-27 14:47:25 +12001<configuration scan="true" debug="true">
2 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
3 <encoder>
4 <pattern>%level [%logger:%thread] %msg%n</pattern>
5 </encoder>
6 </appender>
7
8 <appender name="FILE" class="ch.qos.logback.core.FileAppender">
9 <file>./onos-logs/onos.ubuntu.log</file>
10 <encoder>
11 <pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n</pattern>
12 </encoder>
13 </appender>
14
15 <appender name="ROLLINGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
16 <file>./onos-logs/onos.ubuntu.log</file>
17 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
18 <!-- Roll over to a new log file every day -->
19 <fileNamePattern>./onos-logs/onos.ubuntu.%d{yyyy-MM-dd}.log</fileNamePattern>
20 <!-- Keep 10 days worth of logs -->
21 <maxHistory>10</maxHistory>
22 </rollingPolicy>
23
24 <encoder>
25 <pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n</pattern>
26 </encoder>
27
28 </appender>
29
30 <logger name="org" level="WARN"/>
31 <logger name="LogService" level="WARN"/> <!-- Restlet access logging -->
32 <logger name="net.floodlightcontroller.logging" level="WARN"/>
33
34 <root level="DEBUG">
35 <appender-ref ref="ROLLINGFILE" />
36 </root>
37</configuration>