blob: 0e340f781d0648c3f170966d424ddc506d1683a2 [file] [log] [blame]
ramangrover29116eb972013-02-20 20:47:35 +00001# Define some default values that can be overridden by system properties
2zookeeper.root.logger=SEVERE, CONSOLE
3zookeeper.console.threshold=WARN
4zookeeper.log.dir=.
5zookeeper.log.file=zookeeper.log
6zookeeper.log.threshold=WARN
7zookeeper.tracelog.dir=.
8zookeeper.tracelog.file=zookeeper_trace.log
9
10log4j.logger.edu.uci.ics=INFO
11
12#
13# ZooKeeper Logging Configuration
14#
15
16# Format is "<default threshold> (, <appender>)+
17
18# DEFAULT: console appender only
19log4j.rootLogger=WARN
20
21# Example with rolling log file
22#log4j.rootLogger=DEBUG, CONSOLE, ROLLINGFILE
23
24# Example with rolling log file and tracing
25#log4j.rootLogger=TRACE, CONSOLE, ROLLINGFILE, TRACEFILE
26
27#
28# Log INFO level and above messages to the console
29#
30log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
31log4j.appender.CONSOLE.Threshold=${zookeeper.console.threshold}
32log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
33log4j.appender.CONSOLE.layout.ConversionPattern=%d{ISO8601} [myid:%X{myid}] - %-5p [%t:%C{1}@%L] - %m%n
34
35#
36# Add ROLLINGFILE to rootLogger to get log file output
37# Log DEBUG level and above messages to a log file
38log4j.appender.ROLLINGFILE=org.apache.log4j.RollingFileAppender
39log4j.appender.ROLLINGFILE.Threshold=${zookeeper.log.threshold}
40log4j.appender.ROLLINGFILE.File=${zookeeper.log.dir}/${zookeeper.log.file}
41
42# Max log file size of 10MB
43log4j.appender.ROLLINGFILE.MaxFileSize=10MB
44# uncomment the next line to limit number of backup files
45#log4j.appender.ROLLINGFILE.MaxBackupIndex=10
46
47log4j.appender.ROLLINGFILE.layout=org.apache.log4j.PatternLayout
48log4j.appender.ROLLINGFILE.layout.ConversionPattern=%d{ISO8601} [myid:%X{myid}] - %-5p [%t:%C{1}@%L] - %m%n
49
50
51#
52# Add TRACEFILE to rootLogger to get log file output
53# Log DEBUG level and above messages to a log file
54log4j.appender.TRACEFILE=org.apache.log4j.FileAppender
55log4j.appender.TRACEFILE.Threshold=TRACE
56log4j.appender.TRACEFILE.File=${zookeeper.tracelog.dir}/${zookeeper.tracelog.file}
57
58log4j.appender.TRACEFILE.layout=org.apache.log4j.PatternLayout
59### Notice we are including log4j's NDC here (%x)
60log4j.appender.TRACEFILE.layout.ConversionPattern=%d{ISO8601} [myid:%X{myid}] - %-5p [%t:%C{1}@%L][%x] - %m%n