-
Notifications
You must be signed in to change notification settings - Fork 0
/
log4j.properties
53 lines (40 loc) · 1.79 KB
/
log4j.properties
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
# Common pattern layout for appenders
# see: https://logging.apache.org/log4j/2.x/manual/layouts.html#Patterns
property.pattern = %d{ISO8601} | %-5.5p | (%C{1}:%L) - %m%n
# Root logger
rootLogger.level = INFO
# Append Console logger and make it print only WARN or higher
rootLogger.appenderRef.Console.ref = Console
rootLogger.appenderRef.Console.filter.threshold.type = ThresholdFilter
rootLogger.appenderRef.Console.filter.threshold.level = WARN
# Append Rolling File Logger
rootLogger.appenderRef.RollingFile.ref = RollingFile
# Loggers configuration
# Loglevel configuration for all opencast modules. Usually, INFO is a quite sane log level. If you need a different
# detail level of logs, you can adjust this to: ERROR, WARN, INFO, DEBUG, TRACE.
logger.ilserver.name = de.ilias
logger.ilserver.level = INFO
logger.ilserver-db.level = INFO
logger.ilserver-db.name = de.ilias.services.db.DBFactory
# You can specify different log levels for different packages/modules by specifying their package component names.
#logger.poi.name = org.apache.poi
#logger.poi.level = WARN
#logger.org.name = org
#logger.org.level = WARN
# Appenders configuration
# Console appender not used by default (see log4j2.rootLogger.appenderRefs)
appender.console.type = Console
appender.console.name = Console
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = ${pattern}
# Rolling file appender
appender.out.type = RollingFile
appender.out.name = RollingFile
appender.out.fileName = log/ilserver.log
appender.out.filePattern = log/ilserver.%d{yyyy-MM-dd}.log
appender.out.policies.type = CronTriggeringPolicy
appender.out.policies.evaluateOnStartup = true
appender.out.policies.schedule = 0 0 0 * * ? *
appender.out.append = true
appender.out.layout.type = PatternLayout
appender.out.layout.pattern = ${pattern}