diff --git a/hbase-spark/src/test/resources/log4j.properties b/hbase-spark/src/test/resources/log4j.properties index 4eeeb2c2dee..6d9415bf255 100644 --- a/hbase-spark/src/test/resources/log4j.properties +++ b/hbase-spark/src/test/resources/log4j.properties @@ -15,7 +15,7 @@ # limitations under the License. # Define some default values that can be overridden by system properties -hbase.root.logger=INFO,console +hbase.root.logger=INFO,FA hbase.log.dir=. hbase.log.file=hbase.log @@ -50,6 +50,14 @@ log4j.appender.console.target=System.err log4j.appender.console.layout=org.apache.log4j.PatternLayout log4j.appender.console.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %C{2}(%L): %m%n +#File Appender +log4j.appender.FA=org.apache.log4j.FileAppender +log4j.appender.FA.append=false +log4j.appender.FA.file=target/log-output.txt +log4j.appender.FA.layout=org.apache.log4j.PatternLayout +log4j.appender.FA.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %C{2}(%L): %m%n +log4j.appender.FA.Threshold = INFO + # Custom Logging levels #log4j.logger.org.apache.hadoop.fs.FSNamesystem=DEBUG