User Guide » logback.xml
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
---|---|
2 |
<configuration>
|
3 |
|
4 |
<property name="destination" value="${user.home}/.openecard/logs" /> |
5 |
|
6 |
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
7 |
<file>${destination}/richclient_info.log</file> |
8 |
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
9 |
<!-- daily rollover -->
|
10 |
<fileNamePattern>${destination}/richclient_info.%d{yyyy-MM-dd}.log</fileNamePattern> |
11 |
<!-- keep 30 days' worth of history -->
|
12 |
<maxHistory>30</maxHistory> |
13 |
</rollingPolicy>
|
14 |
<encoder>
|
15 |
<pattern>%date{ISO8601} [%thread] %-5level %class{35}:%line - %msg%n</pattern> |
16 |
</encoder>
|
17 |
</appender>
|
18 |
|
19 |
<logger name="org.openecard.richclient" level="INFO" /> |
20 |
|
21 |
<root level="WARN"> |
22 |
<appender-ref ref="FILE" /> |
23 |
</root>
|
24 |
|
25 |
</configuration>
|