From 728091e17860acbca86ba4871d4a025276cf8d33 Mon Sep 17 00:00:00 2001 From: Matteo Merli Date: Mon, 26 Sep 2016 17:33:38 -0700 Subject: [PATCH] Added log4j with info logs for pulsar-broker unit tests (#37) --- .../src/test/resources/log4j.properties | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pulsar-broker/src/test/resources/log4j.properties diff --git a/pulsar-broker/src/test/resources/log4j.properties b/pulsar-broker/src/test/resources/log4j.properties new file mode 100644 index 0000000000000..289d7c1d04b63 --- /dev/null +++ b/pulsar-broker/src/test/resources/log4j.properties @@ -0,0 +1,20 @@ + +# +# Pulsar-Broker Tests Logging Configuration +# +# Format is " (, )+ + +log4j.rootLogger=OFF, CONSOLE + +log4j.logger.org.apache.zookeeper=OFF +log4j.logger.org.apache.bookkeeper=OFF + +log4j.logger.com.yahoo.pulsar=OFF + +# +# Log INFO level and above messages to the console +# +log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender +log4j.appender.CONSOLE.Threshold=DEBUG +log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout +log4j.appender.CONSOLE.layout.ConversionPattern=%d{ISO8601} - %-5p - [%t:%C{1}@%L] - %m%n