blob: b4c70d285efd4ce48570ba78159a3d60cb47e2c8 (
plain) (
blame)
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
52
53
54
55
56
57
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration>
<configuration>
<include resource="org/springframework/boot/logging/logback/defaults.xml" />
<include resource="org/springframework/boot/logging/logback/console-appender.xml" />
<root level="INFO">
<appender-ref ref="CONSOLE" />
</root>
<springProfile name="production">
<include resource="org/springframework/boot/logging/logback/file-appender.xml" />
<property name="LOG_FILE" value="${LOG_FILE:-${LOG_PATH:-${LOG_TEMP:-${java.io.tmpdir:-/tmp}}/}server.log}" />
<root level="INFO">
<appender-ref ref="CONSOLE" />
<appender-ref ref="FILE" />
</root>
<appender name="XMPP" class="ch.qos.logback.core.FileAppender">
<file>${LOG_PATH}/xmpp.log</file>
<append>true</append>
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss} %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<appender name="Session" class="ch.qos.logback.core.FileAppender">
<file>${LOG_PATH}/session.log</file>
<append>true</append>
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss} %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<appender name="Telegram" class="ch.qos.logback.core.FileAppender">
<file>${LOG_PATH}/durov.log</file>
<append>true</append>
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss} %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<appender name="ActivityPub" class="ch.qos.logback.core.FileAppender">
<file>${LOG_PATH}/activity.log</file>
<append>true</append>
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss} %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<logger name="XMPP" level="DEBUG" additivity="false">
<appender-ref ref="XMPP" />
</logger>
<logger name="Session" level="DEBUG" additivity="false">
<appender-ref ref="Session" />
</logger>
<logger name="Telegram" level="DEBUG" additivity="false">
<appender-ref ref="Telegram" />
</logger>
<logger name="ActivityPub" level="INFO" additivity="false">
<appender-ref ref="ActivityPub" />
</logger>
</springProfile>
</configuration>
|