Naoki Shiota | 4e46318 | 2014-03-21 15:13:24 -0700 | [diff] [blame] | 1 | <configuration scan="true" scanPeriod="1 minutes" debug="true"> |
| 2 | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
Yuta HIGUCHI | 0471397 | 2014-05-30 11:01:17 -0700 | [diff] [blame^] | 3 | <encoder> |
| 4 | <pattern>%level [%logger:%thread] %msg%n</pattern> |
| 5 | </encoder> |
Naoki Shiota | 4e46318 | 2014-03-21 15:13:24 -0700 | [diff] [blame] | 6 | </appender> |
| 7 | |
Yuta HIGUCHI | 0471397 | 2014-05-30 11:01:17 -0700 | [diff] [blame^] | 8 | <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 9 | <file>__FILENAME__</file> |
| 10 | <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 11 | <fileNamePattern>__ROLLING_PATTERN__</fileNamePattern> |
| 12 | <minIndex>1</minIndex> |
| 13 | <maxIndex>10</maxIndex> |
| 14 | </rollingPolicy> |
| 15 | <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 16 | <maxFileSize>100MB</maxFileSize> |
| 17 | </triggeringPolicy> |
| 18 | <encoder> |
| 19 | <pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n</pattern> |
| 20 | <immediateFlush>true</immediateFlush> |
| 21 | </encoder> |
Naoki Shiota | 4e46318 | 2014-03-21 15:13:24 -0700 | [diff] [blame] | 22 | </appender> |
| 23 | |
| 24 | <logger name="org" level="WARN"/> |
| 25 | <logger name="LogService" level="WARN"/> <!-- Restlet access logging --> |
| 26 | <logger name="net.floodlightcontroller.logging" level="WARN"/> |
| 27 | <logger name="com.hazelcast" level="INFO"/> |
| 28 | |
| 29 | <root level="DEBUG"> |
Yuta HIGUCHI | 0471397 | 2014-05-30 11:01:17 -0700 | [diff] [blame^] | 30 | <appender-ref ref="FILE" /> |
Naoki Shiota | 4e46318 | 2014-03-21 15:13:24 -0700 | [diff] [blame] | 31 | </root> |
Yuta HIGUCHI | 0471397 | 2014-05-30 11:01:17 -0700 | [diff] [blame^] | 32 | </configuration> |