accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From milleruntime <...@git.apache.org>
Subject [GitHub] accumulo pull request #221: ACCUMULO-4588 Simplify Accumulo logging configur...
Date Fri, 24 Feb 2017 19:28:33 GMT
Github user milleruntime commented on a diff in the pull request:

    https://github.com/apache/accumulo/pull/221#discussion_r103014701
  
    --- Diff: assemble/conf/log4j-service.properties ---
    @@ -15,42 +15,48 @@
     
     # Write out everything at the DEBUG level to the debug log
     log4j.appender.A2=org.apache.log4j.RollingFileAppender
    -log4j.appender.A2.File=${org.apache.accumulo.core.dir.log}/${org.apache.accumulo.core.application}${accumulo.service.instance}_${org.apache.accumulo.core.ip.localhost.hostname}_fromprops.debug.log
    -log4j.appender.A2.MaxFileSize=1000MB
    -log4j.appender.A2.MaxBackupIndex=10
    +log4j.appender.A2.File=${accumulo.log.dir}/${accumulo.application}${accumulo.service.instance}_${accumulo.local.hostname}.debug.log
    +log4j.appender.A2.MaxFileSize=100MB
    +log4j.appender.A2.MaxBackupIndex=5
     log4j.appender.A2.Threshold=DEBUG
     log4j.appender.A2.layout=org.apache.log4j.PatternLayout
     log4j.appender.A2.layout.ConversionPattern=%d{ISO8601} [%-8c{2}] %-5p: %m%n
     
     # Write out INFO and higher to the regular log
     log4j.appender.A3=org.apache.log4j.RollingFileAppender
    -log4j.appender.A3.File=${org.apache.accumulo.core.dir.log}/${org.apache.accumulo.core.application}${accumulo.service.instance}_${org.apache.accumulo.core.ip.localhost.hostname}_fromprops.log
    -log4j.appender.A3.MaxFileSize=1000MB
    -log4j.appender.A3.MaxBackupIndex=10
    +log4j.appender.A3.File=${accumulo.log.dir}/${accumulo.application}${accumulo.service.instance}_${accumulo.local.hostname}.log
    +log4j.appender.A3.MaxFileSize=100MB
    +log4j.appender.A3.MaxBackupIndex=5
    --- End diff --
    
    You are right, I was thinking of DailyRollingFileAppender, thanks.  10 x 100MB = 1G for
each I think is reasonable


---
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