File: logback.xml

package info (click to toggle)
zabbix 1%3A5.0.14%2Bdfsg-1~bpo11%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye-backports
  • size: 163,376 kB
  • sloc: sql: 339,185; xml: 269,046; ansic: 252,261; php: 195,692; javascript: 53,560; sh: 5,339; makefile: 1,730; java: 1,391; cpp: 620; perl: 41
file content (27 lines) | stat: -rw-r--r-- 800 bytes parent folder | download | duplicates (11)
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
<configuration scan="true" scanPeriod="15 seconds">

	<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">

		<file>/var/log/zabbix-java-gateway/zabbix_java_gateway.log</file>

		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>/var/log/zabbix-java-gateway/zabbix_java_gateway.log.%i.gz</fileNamePattern>
			<minIndex>1</minIndex>
			<maxIndex>5</maxIndex>
		</rollingPolicy>

		<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
			<maxFileSize>10MB</maxFileSize>
		</triggeringPolicy>

		<encoder>
			<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
		</encoder>

	</appender>

	<root level="info">
		<appender-ref ref="FILE" />
	</root>

</configuration>