keith-turner commented on a change in pull request #264: Enable debug logging
for Accumulo servers
URL: https://github.com/apache/fluo-muchos/pull/264#discussion_r306073805
##########
File path: ansible/roles/accumulo/templates/log4j-service.properties
##########
@@ -0,0 +1,24 @@
+log4j.appender.file=org.apache.log4j.RollingFileAppender
+log4j.appender.file.File=${accumulo.log.dir}/${accumulo.application}.log
+log4j.appender.file.MaxFileSize=1000MB
+log4j.appender.file.MaxBackupIndex=10
+log4j.appender.file.Threshold=ALL
+log4j.appender.file.layout=org.apache.log4j.PatternLayout
+log4j.appender.file.layout.ConversionPattern=%d{ISO8601} [%-8c{2}] %-5p: %m%n
+
+# send logs to Accumulo monitor
+log4j.appender.monitor=org.apache.accumulo.monitor.util.AccumuloMonitorAppender
+log4j.appender.monitor.Threshold=WARN
+
+# suppress spammy logging from 3rd party libs
+log4j.logger.org.mortbay.log=WARN
+log4j.logger.org.apache.zookeeper=ERROR
+log4j.logger.org.apache.hadoop.io.compress=WARNi
+
+log4j.logger.org.apache.accumulo=DEBUG
+
+# suppress some spammy Accumulo logging
+log4j.logger.org.apache.accumulo.core.file.rfile.bcfile=INFO
+log4j.logger.org.apache.accumulo.audit=OFF
+
+log4j.rootLogger=INFO, file
Review comment:
I did this at first and I was getting too much junk from non-accumulo stuff
(like GSon and Hadoop). So that is when I decided to set the root INFO and
`org.apache.accumulo` to DEBUG.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services