HDFS-11977. Ozone: cannot enable test debug/trace log. Contributed by Tsz Wo Nicholas Sze.

This commit is contained in:
Xiaoyu Yao 2017-06-15 08:25:20 -07:00
parent ba1afb25cc
commit a3c75be588
1 changed files with 2 additions and 2 deletions

View File

@ -51,14 +51,14 @@ log4j.appender.DNMETRICSRFA.MaxFileSize=64MB
# #
# Add a logger for ozone that is separate from the Datanode. # Add a logger for ozone that is separate from the Datanode.
# #
log4j.logger.org.apache.hadoop.ozone=DEBUG,OZONE,FILE log4j.logger.org.apache.hadoop.ozone=INFO,OZONE,FILE
# Do not log into datanode logs. Remove this line to have single log. # Do not log into datanode logs. Remove this line to have single log.
log4j.additivity.org.apache.hadoop.ozone=false log4j.additivity.org.apache.hadoop.ozone=false
# For development purposes, log both to console and log file. # For development purposes, log both to console and log file.
log4j.appender.OZONE=org.apache.log4j.ConsoleAppender log4j.appender.OZONE=org.apache.log4j.ConsoleAppender
log4j.appender.OZONE.Threshold=info log4j.appender.OZONE.Threshold=ALL
log4j.appender.OZONE.layout=org.apache.log4j.PatternLayout log4j.appender.OZONE.layout=org.apache.log4j.PatternLayout
log4j.appender.OZONE.layout.ConversionPattern=%d{ISO8601} [%t] %-5p \ log4j.appender.OZONE.layout.ConversionPattern=%d{ISO8601} [%t] %-5p \
%X{component} %X{function} %X{resource} %X{user} %X{request} - %m%n %X{component} %X{function} %X{resource} %X{user} %X{request} - %m%n