HBASE-12882 Log level now configurable from outside Log4j configuration
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/8377873d Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/8377873d Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/8377873d Branch: refs/heads/HBASE-20331 Commit: 8377873d22c25185127bc07ea055412d8e302a1a Parents: 5b24d4c Author: Jan Hentschel <[email protected]> Authored: Sat Dec 31 13:07:21 2016 +0100 Committer: Jan Hentschel <[email protected]> Committed: Sat Jun 2 11:21:15 2018 +0200 ---------------------------------------------------------------------- conf/log4j.properties | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/8377873d/conf/log4j.properties ---------------------------------------------------------------------- diff --git a/conf/log4j.properties b/conf/log4j.properties index 6367dbe..af28319 100644 --- a/conf/log4j.properties +++ b/conf/log4j.properties @@ -19,6 +19,7 @@ hbase.root.logger=INFO,console hbase.security.logger=INFO,console hbase.log.dir=. hbase.log.file=hbase.log +hbase.log.level=INFO # Define the root logger to the system property "hbase.root.logger". log4j.rootLogger=${hbase.root.logger} @@ -92,13 +93,13 @@ log4j.appender.asyncconsole.target=System.err # Custom Logging levels -log4j.logger.org.apache.zookeeper=INFO +log4j.logger.org.apache.zookeeper=${hbase.log.level} #log4j.logger.org.apache.hadoop.fs.FSNamesystem=DEBUG -log4j.logger.org.apache.hadoop.hbase=INFO -log4j.logger.org.apache.hadoop.hbase.META=INFO +log4j.logger.org.apache.hadoop.hbase=${hbase.log.level} +log4j.logger.org.apache.hadoop.hbase.META=${hbase.log.level} # 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.ZKWatcher=INFO +log4j.logger.org.apache.hadoop.hbase.zookeeper.ZKUtil=${hbase.log.level} +log4j.logger.org.apache.hadoop.hbase.zookeeper.ZKWatcher=${hbase.log.level} #log4j.logger.org.apache.hadoop.dfs=DEBUG # Set this class to log INFO only otherwise its OTT # Enable this to get detailed connection error/retry logging.
