File: log4j.properties

package info (click to toggle)
jas 2.5.4408-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 10,976 kB
  • ctags: 15,216
  • sloc: java: 111,905; python: 11,461; ruby: 9,204; makefile: 401; xml: 240; sh: 194
file content (80 lines) | stat: -rw-r--r-- 3,308 bytes parent folder | download
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# $Id: log4j.properties 4293 2012-11-04 18:18:30Z kredel $

#log4j.debug=true

# Set root category priority to INFO and set its appender to log
# categories: DEBUG, INFO, WARN, ERROR, FATAL
# log4j.rootCategory=INFO, log, err, sys
# log4j.rootCategory=WARN, log
#log4j.rootCategory=WARN
log4j.rootCategory=INFO, null
#log4j.rootCategory=INFO, out
#log4j.rootCategory=WARN, out
#log4j.rootCategory=DEBUG, log
#log4j.rootCategory=DEBUG, out


#### 'out' appender writes to System.out or System.err
# out is set to be a ConsoleAppender (writes to system error/out).
log4j.appender.out=org.apache.log4j.ConsoleAppender
log4j.appender.out.target=System.out

# out uses PatternLayout.
# log4j.appender.out.layout=org.apache.log4j.SimpleLayout
log4j.appender.out.layout=org.apache.log4j.PatternLayout
#log4j.appender.out.layout.ConversionPattern=%c - %m%n
#log4j.appender.out.layout.ConversionPattern=[%t] %-5p %c - %m%n
log4j.appender.out.layout.ConversionPattern=%-4r [%t] %-5p %c - %m%n
# log4j.appender.out.layout.ConversionPattern=%-5p %t %c - %m%n
# log4j.appender.out.layout.ConversionPattern=[%t] %-5p %c %x - %m%n
# log4j.appender.out.layout.ConversionPattern=%d{ISO8601} %-4r [%t] %-5p %c %x - %m%n
# log4j.appender.out.layout.ConversionPattern=[%t] %c - %m%n


#### 'log' appender writes to a file
log4j.appender.log=org.apache.log4j.RollingFileAppender
log4j.appender.log.File=test/jastest.log

# Control the maximum log file size
log4j.appender.log.MaxFileSize=1000KB
# Archive log files (ten backup file here)
log4j.appender.log.MaxBackupIndex=10

# log4j.appender.log.layout=org.apache.log4j.HTMLLayout
# log4j.appender.log.layout=org.apache.log4j.SimpleLayout
log4j.appender.log.layout=org.apache.log4j.PatternLayout
log4j.appender.log.layout.ConversionPattern=%-4r [%t] %-5p %c - %m%n
# log4j.appender.log.layout.ConversionPattern=%-5p [%t] %c - %m%n
# log4j.appender.log.layout.ConversionPattern=%-4r %-5p [%t,%X{hostname}] %c - %m%n
# log4j.appender.log.layout.ConversionPattern=%p %t %c - %m%n
# log4j.appender.log.layout.ConversionPattern=[%t] %c - %m%n


#### 'err' appender writes to System.out or System.err
# err is set to be a ConsoleAppender (writes to system error).
log4j.appender.err=org.apache.log4j.ConsoleAppender
log4j.appender.err.target=System.err

# err uses PatternLayout.
# log4j.appender.err.layout=org.apache.log4j.SimpleLayout
log4j.appender.err.layout=org.apache.log4j.PatternLayout
log4j.appender.err.layout.ConversionPattern=%-4r [%t] %-5p %c - %m%n
# log4j.appender.err.layout.ConversionPattern=%-5p %t %c - %m%n
# log4j.appender.err.layout.ConversionPattern=[%t] %-5p %c %x - %m%n
# log4j.appender.err.layout.ConversionPattern=%d{ISO8601} %-4r [%t] %-5p %c %x - %m%n
# log4j.appender.err.layout.ConversionPattern=[%t] %c - %m%n


#### 'sys' appender writes to remote syslog
#### needs syslogd -r on target, see /etc/sysconfig/syslog
log4j.appender.sys=org.apache.log4j.net.SyslogAppender
log4j.appender.sys.layout=org.apache.log4j.PatternLayout
log4j.appender.sys.syslogHost=localhost
log4j.appender.sys.facility=user
# log4j.appender.sys.facility=local0
# log4j.appender.sys.facilityPrinting=true
# log4j.appender.sys.layout.ConversionPattern=%-4r [%t] %-5p %c - %m%n


#### 'null' appender writes to /dev/null
log4j.appender.null=org.apache.log4j.varia.NullAppender