From 4ffea7711acc33dc3c0a75479b510d0683c11523 Mon Sep 17 00:00:00 2001 From: Apekshit Date: Thu, 2 Jun 2016 01:43:35 -0700 Subject: [PATCH] HBASE-15944 Spark test flooding mvn output. Redirect test logs to file. This doesn't fix the problem fully as I still see few logs being dumped in stdout. But it cleans up majority of the earlier dump. (Apekshit) Change-Id: I6893301d154078a7cfb6b9af2eedc744deafb8d7 Signed-off-by: stack --- hbase-spark/src/test/resources/log4j.properties | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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