accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikewalch <...@git.apache.org>
Subject [GitHub] accumulo pull request #223: ACCUMULO-4409 Create AccumuloMonitorAppender
Date Wed, 01 Mar 2017 15:22:32 GMT
Github user mikewalch commented on a diff in the pull request:

    https://github.com/apache/accumulo/pull/223#discussion_r103702178
  
    --- Diff: assemble/conf/log4j-monitor.properties ---
    @@ -16,23 +16,21 @@
     ## Log4j 1.2 file that configures logging for Accumulo Monitor
     ## The system properties referenced below are configured by accumulo-env.sh
     
    -## Write out INFO and higher to log file
    +## Define a log file appender
     log4j.appender.file=org.apache.log4j.RollingFileAppender
    -log4j.appender.file.File=${accumulo.log.dir}/${accumulo.service.id}.log
    +log4j.appender.file.File=${accumulo.log.dir}/${accumulo.application}.log
     log4j.appender.file.MaxFileSize=100MB
     log4j.appender.file.MaxBackupIndex=10
     log4j.appender.file.Threshold=INFO
     log4j.appender.file.layout=org.apache.log4j.PatternLayout
     log4j.appender.file.layout.ConversionPattern=%d{ISO8601} [%-8c{2}] %-5p: %m%n
     
    -## Keep the last few log messages for display to the user in Monitor GUI
    +## Define an appender for the Accumulo Monitor to log to its own web GUI
     log4j.appender.gui=org.apache.accumulo.server.monitor.LogService
    -log4j.appender.gui.Keep=50
     log4j.appender.gui.Threshold=WARN
     
    -## Log accumulo messages to file and gui appenders
    -log4j.logger.org.apache.accumulo=INFO, file, gui
    -log4j.additivity.org.apache.accumulo=false
    +## Append monitor logs to its own web GUI
    +log4j.logger.org.apache.accumulo=INHERITED, gui
    --- End diff --
    
    This is cool.  I am guessing `INHERITED` takes level of higher logger in tree. Is there
documentation on this?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message