2008-02-05 01:15:44 -05:00
|
|
|
# Define some default values that can be overridden by system properties
|
|
|
|
hbase.root.logger=INFO,console
|
|
|
|
hbase.log.dir=.
|
|
|
|
hbase.log.file=hbase.log
|
|
|
|
|
|
|
|
# Define the root logger to the system property "hbase.root.logger".
|
|
|
|
log4j.rootLogger=${hbase.root.logger}
|
|
|
|
|
|
|
|
# Logging Threshold
|
2011-05-19 17:05:13 -04:00
|
|
|
log4j.threshold=ALL
|
2008-02-05 01:15:44 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# Daily Rolling File Appender
|
|
|
|
#
|
|
|
|
log4j.appender.DRFA=org.apache.log4j.DailyRollingFileAppender
|
|
|
|
log4j.appender.DRFA.File=${hbase.log.dir}/${hbase.log.file}
|
|
|
|
|
|
|
|
# Rollver at midnight
|
|
|
|
log4j.appender.DRFA.DatePattern=.yyyy-MM-dd
|
|
|
|
|
|
|
|
# 30-day backup
|
|
|
|
#log4j.appender.DRFA.MaxBackupIndex=30
|
|
|
|
log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout
|
|
|
|
|
|
|
|
# Pattern format: Date LogLevel LoggerName LogMessage
|
|
|
|
log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n
|
|
|
|
|
|
|
|
# Debugging Pattern format
|
|
|
|
#log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} (%F:%M(%L)) - %m%n
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# console
|
|
|
|
# Add "console" to rootlogger above if you want to use this
|
|
|
|
#
|
|
|
|
log4j.appender.console=org.apache.log4j.ConsoleAppender
|
|
|
|
log4j.appender.console.target=System.err
|
|
|
|
log4j.appender.console.layout=org.apache.log4j.PatternLayout
|
|
|
|
log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{2}: %m%n
|
|
|
|
|
|
|
|
# Custom Logging levels
|
|
|
|
|
2009-06-23 18:42:01 -04:00
|
|
|
log4j.logger.org.apache.zookeeper=INFO
|
2008-02-05 01:15:44 -05:00
|
|
|
#log4j.logger.org.apache.hadoop.fs.FSNamesystem=DEBUG
|
2009-10-12 19:58:45 -04:00
|
|
|
log4j.logger.org.apache.hadoop.hbase=DEBUG
|
2010-09-20 15:04:41 -04:00
|
|
|
# Make these two classes INFO-level. Make them DEBUG to see more zk debug.
|
|
|
|
log4j.logger.org.apache.hadoop.hbase.zookeeper.ZKUtil=INFO
|
|
|
|
log4j.logger.org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher=INFO
|
2008-07-02 01:32:20 -04:00
|
|
|
#log4j.logger.org.apache.hadoop.dfs=DEBUG
|
2010-09-18 17:56:37 -04:00
|
|
|
# Set this class to log INFO only otherwise its OTT
|
2010-11-05 16:12:00 -04:00
|
|
|
|
2010-11-05 18:23:41 -04:00
|
|
|
# Uncomment the below if you want to remove logging of client region caching'
|
|
|
|
# and scan of .META. messages
|
2010-11-05 16:12:00 -04:00
|
|
|
# log4j.logger.org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation=INFO
|
2010-11-05 18:23:41 -04:00
|
|
|
# log4j.logger.org.apache.hadoop.hbase.client.MetaScanner=INFO
|