From 6921632f70d9321b7e37c2a00618a21bccc0e765 Mon Sep 17 00:00:00 2001 From: Michael Lando Date: Sun, 14 May 2017 11:32:52 +0300 Subject: first commit for new repo Change-Id: I307341ad768d38a60fb49f96b5b40186c0bd1205 Signed-off-by: Michael Lando --- src/test/resources/log4j.properties | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/test/resources/log4j.properties (limited to 'src/test/resources/log4j.properties') diff --git a/src/test/resources/log4j.properties b/src/test/resources/log4j.properties new file mode 100644 index 0000000..271e198 --- /dev/null +++ b/src/test/resources/log4j.properties @@ -0,0 +1,35 @@ +# A1 is a FileAppender. +log4j.appender.A1=org.apache.log4j.FileAppender +log4j.appender.A1.File=target/test.log +log4j.appender.A1.Threshold=TRACE +# A1 uses PatternLayout. +log4j.appender.A1.layout=org.apache.log4j.PatternLayout +log4j.appender.A1.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c{2}: %m%n + +# A2 is a ConsoleAppender. +log4j.appender.A2=org.apache.log4j.ConsoleAppender +log4j.appender.A2.Threshold=WARN +# A2 uses PatternLayout. +log4j.appender.A2.layout=org.apache.log4j.PatternLayout +log4j.appender.A2.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c{2}: %m%n + +# Set both appenders (A1 and A2) on the root logger. +log4j.rootLogger=INFO, A1, A2 +#log4j.rootLogger=INFO, A1 + +# Restrict some of Titan's dependencies to INFO and scarier. +# These restrictions are useful when reducing the severity threshold +# setting on one of the appenders below INFO. +log4j.logger.org.apache.cassandra=INFO +log4j.logger.org.apache.hadoop=INFO +log4j.logger.org.apache.zookeeper=INFO +# Disable all messages from ExpectedValueCheckingTransaction. The point is to +# suppress scary-looking ERROR messages that are deliberately induced by +# LockKeyColumnValueStoreTest. +log4j.logger.com.thinkaurelius.titan.diskstorage.locking.consistentkey.ExpectedValueCheckingTransaction=OFF +# Lower dblog-related message thresholds +log4j.logger.com.thinkaurelius.titan.diskstorage.log.kcvs.KCVSLog=DEBUG +log4j.logger.com.thinkaurelius.titan.diskstorage.log.LogTest=DEBUG +log4j.logger.com.thinkaurelius.titan.diskstorage.log.KCVSLogTest=DEBUG +log4j.logger.com.thinkaurelius.titan.diskstorage.log.util.ProcessMessageJob=DEBUG +log4j.logger.com.thinkaurelius.titan.diskstorage.util.time.Timestamps=DEBUG -- cgit 1.2.3-korg