-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathadvanced_http.xml
More file actions
43 lines (39 loc) · 1.74 KB
/
Copy pathadvanced_http.xml
File metadata and controls
43 lines (39 loc) · 1.74 KB
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
<configuration>
<appender name="GELF" class="de.siegmar.logbackgelf.GelfHttpAppender">
<uri>https://my.server:12201/gelf</uri>
<insecure>false</insecure>
<connectTimeout>15000</connectTimeout>
<requestTimeout>5000</requestTimeout>
<maxRetries>2</maxRetries>
<retryDelay>3000</retryDelay>
<compressionMethod>GZIP</compressionMethod>
<encoder class="de.siegmar.logbackgelf.GelfEncoder">
<originHost>localhost</originHost>
<includeRawMessage>false</includeRawMessage>
<includeKeyValues>true</includeKeyValues>
<includeMarker>false</includeMarker>
<includeMdcData>true</includeMdcData>
<includeCallerData>false</includeCallerData>
<includeRootCauseData>false</includeRootCauseData>
<includeLevelName>false</includeLevelName>
<shortMessageLayout class="ch.qos.logback.classic.PatternLayout">
<pattern>%m%nopex</pattern>
</shortMessageLayout>
<fullMessageLayout class="ch.qos.logback.classic.PatternLayout">
<pattern>%m%n</pattern>
</fullMessageLayout>
<numbersAsString>false</numbersAsString>
<staticField>app_name:backend</staticField>
<staticField>os_arch:${os.arch}</staticField>
<staticField>os_name:${os.name}</staticField>
<staticField>os_version:${os.version}</staticField>
</encoder>
</appender>
<appender name="ASYNC GELF" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="GELF" />
<neverBlock>true</neverBlock>
</appender>
<root level="debug">
<appender-ref ref="ASYNC GELF" />
</root>
</configuration>