forked from dubboclub/dubbokeeper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logback.xml
51 lines (49 loc) · 2.23 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<substitutionProperty name="PROJECT_NAME" value="dubbokeeper"/>
<substitutionProperty name="LOG_HOME" value="${monitor.log.home}"/>
<timestamp key="byDate" datePattern="yyyyMMdd" />
<appender name="dubboRolling" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_HOME}/dubbo-framework/DUBBO.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${LOG_HOME}/dubbo-framework/DUBBO-%d{yyyy-MM-dd}.%i.zip</fileNamePattern>
<maxHistory>30</maxHistory>
<TimeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<MaxFileSize>100MB</MaxFileSize>
</TimeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<immediateFlush>true</immediateFlush>
</encoder>
</appender>
<appender name="dkRolling" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_HOME}/dubbokeeper/DubboKeeper.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${LOG_HOME}/dubbokeeper/DubboKeeper-%d{yyyy-MM-dd}.%i.zip</fileNamePattern>
<maxHistory>30</maxHistory>
<TimeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<MaxFileSize>100MB</MaxFileSize>
</TimeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<immediateFlush>true</immediateFlush>
</encoder>
</appender>
<!--dubbo-->
<logger
name="com.alibaba.dubbo"
level="DEBUG">
<appender-ref ref="dubboRolling" />
</logger>
<!--dubbo-->
<logger
name="com.dubboclub"
level="DEBUG">
<appender-ref ref="dkRolling" />
</logger>
<!--<root level="DEBUG">
<appender-ref ref="STDOUT" />
</root>-->
</configuration>