-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogback.xml
37 lines (30 loc) · 1.25 KB
/
logback.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<configuration>
<property name="LOG_DIR" value="${user.dir}/logs/"/>
<property name="LOGGER_LENGTH" value="30"/>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<!--filter debug-->
<!--<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>DEBUG</level>
<onMatch>DENY</onMatch>
<onMismatch>ACCEPT</onMismatch>
</filter>-->
<encoder>
<pattern>%d{ISO8601} %-5p [%t{10}] %logger{${LOGGER_LENGTH}} %F\(%line\) - %m%n</pattern>
</encoder>
</appender>
<appender name="fileAppender.actor" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_DIR}actor/actor.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${LOG_DIR}actor/actor.log.%d{yyyy-MM-dd-HH}</fileNamePattern>
</rollingPolicy>
<encoder>
<pattern>%d{ISO8601} %-5p [%t{10}] %logger{${LOGGER_LENGTH}} %F\(%line\) - %m%n</pattern>
</encoder>
</appender>
<logger name="actor-kt" level="DEBUG">
<appender-ref ref="fileAppender.actor"/>
</logger>
<root level="TRACE">
<appender-ref ref="STDOUT"/>
</root>
</configuration>