"Fossies" - the Fresh Open Source Software Archive 
Member "apache-log4j-2.12.4-src/log4j-core/src/test/resources/log4j-rolling.properties" (20 Dec 2021, 2335 Bytes) of package /linux/misc/apache-log4j-2.12.4-src.tar.gz:
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 # Licensed to the Apache Software Foundation (ASF) under one or more
2 # contributor license agreements. See the NOTICE file distributed with
3 # this work for additional information regarding copyright ownership.
4 # The ASF licenses this file to You under the Apache License, Version 2.0
5 # (the "License"); you may not use this file except in compliance with
6 # the License. You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 status = error
17 name = PropertiesConfigTest
18
19 property.filename = target/rolling/rollingtest.log
20
21 filters = threshold
22
23 filter.threshold.type = ThresholdFilter
24 filter.threshold.level = debug
25
26 appenders = console, rolling, my.list
27
28 appender.console.type = Console
29 appender.console.name = STDOUT
30 appender.console.layout.type = PatternLayout
31 appender.console.layout.pattern = %m%n
32
33 appender.rolling.type = RollingFile
34 appender.rolling.name = RollingFile
35 appender.rolling.fileName = ${filename}
36 appender.rolling.filePattern = target/rolling2/test1-%d{MM-dd-yy-HH-mm-ss}-%i.log.gz
37 appender.rolling.layout.type = PatternLayout
38 appender.rolling.layout.pattern = %d %p %C{1.} [%t] %m%n
39 appender.rolling.policies.type = Policies
40 appender.rolling.policies.time.type = TimeBasedTriggeringPolicy
41 appender.rolling.policies.time.interval = 2
42 appender.rolling.policies.time.modulate = true
43 appender.rolling.policies.size.type = SizeBasedTriggeringPolicy
44 appender.rolling.policies.size.size=100MB
45
46 appender.my.list.type = List
47 appender.my.list.name = List
48 appender.my.list.filters = threshold
49 appender.my.list.filter.threshold.type = ThresholdFilter
50 appender.my.list.filter.threshold.level = error
51
52 loggers = rolling.file
53
54 logger.rolling.file.name = org.apache.logging.log4j.core.appender.rolling
55 logger.rolling.file.level = debug
56 logger.rolling.file.additivity = false
57 logger.rolling.file.appenderRefs = rolling
58 logger.rolling.file.appenderRef.rolling.ref = RollingFile
59
60 rootLogger.level = info
61 rootLogger.appenderRefs = stdout
62 rootLogger.appenderRef.stdout.ref = STDOUT