| Revision 1428,
1.8 KB
checked in by kenyiu, 8 months ago
(diff) |
|
CHG: Moved the config files up to the project directory level.
|
| Line | |
|---|
| 1 | <configuration>
|
|---|
| 2 |
|
|---|
| 3 | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
|---|
| 4 | <!-- encoders are assigned the type |
|---|
| 5 | ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
|
|---|
| 6 | <encoder>
|
|---|
| 7 | <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36},%line - %msg%n</pattern>
|
|---|
| 8 | </encoder>
|
|---|
| 9 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
|---|
| 10 | <level>INFO</level>
|
|---|
| 11 | </filter>
|
|---|
| 12 | </appender>
|
|---|
| 13 |
|
|---|
| 14 | <!--
|
|---|
| 15 | Insert the current time under the key 'bySecond' into the logger context.
|
|---|
| 16 | This value will be available to all subsequent configuration elements.
|
|---|
| 17 | -->
|
|---|
| 18 | <timestamp key="bySecond" datePattern="yyyy'.'MM'.'dd','HH'.'mm'.'ss" />
|
|---|
| 19 |
|
|---|
| 20 | <appender name="FILE1" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|---|
| 21 | <file>log/algoquant.${bySecond}.log</file>
|
|---|
| 22 | <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
|
|---|
| 23 | <fileNamePattern>log/algoquant.${bySecond}.%i.log.zip</fileNamePattern>
|
|---|
| 24 | <!--
|
|---|
| 25 | Given that the fixed window rolling policy requires as many file renaming operations as the window size, large window sizes are strongly discouraged. When large values are specified by the user, the current implementation will automatically reduce the window size to 12.
|
|---|
| 26 | -->
|
|---|
| 27 | <minIndex>1</minIndex>
|
|---|
| 28 | <maxIndex>12</maxIndex>
|
|---|
| 29 | </rollingPolicy>
|
|---|
| 30 | <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
|---|
| 31 | <maxFileSize>200MB</maxFileSize>
|
|---|
| 32 | </triggeringPolicy>
|
|---|
| 33 | <encoder>
|
|---|
| 34 | <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36},%line - %msg%n</pattern>
|
|---|
| 35 | </encoder>
|
|---|
| 36 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
|---|
| 37 | <level>DEBUG</level>
|
|---|
| 38 | </filter>
|
|---|
| 39 | </appender>
|
|---|
| 40 |
|
|---|
| 41 | <root level="DEBUG">
|
|---|
| 42 | <appender-ref ref="STDOUT"/>
|
|---|
| 43 | <appender-ref ref="FILE1"/>
|
|---|
| 44 | </root>
|
|---|
| 45 |
|
|---|
| 46 | </configuration>
|
|---|
Note: See
TracBrowser
for help on using the repository browser.