greyp9 commented on PR #6300:
URL: https://github.com/apache/nifi/pull/6300#issuecomment-1224193543

   > Thanks for the feedback regarding the Logback configuration @greyp9!
   > 
   > I updated the Logback configuration to set `additivity="false"` for the 
`deprecation` logger to avoid duplicating messages in `nifi-app.log`. I also 
updated the `DEPRECATION_FILE` appender to set a maximum file size of 10 MB and 
a maximum history of 10. Although the log could produce many duplicate 
messages, this configuration limits the amount of space that could be consumed 
in the default configuration.
   
   Tried this out again.  The additional config does not seem to be sufficient 
to limit the deprecation logger output.  This configuration seems to achieve 
the intent:
   
   ```
           <rollingPolicy 
class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
               
<fileNamePattern>${org.apache.nifi.bootstrap.config.log.dir}/nifi-deprecation_%d.%i.log</fileNamePattern>
               <maxFileSize>10MB</maxFileSize>
               <maxHistory>10</maxHistory>
               <totalSizeCap>100MB</totalSizeCap>
           </rollingPolicy>
   ```
   
   This may be a corner case, due to logback being fed logging events so 
quickly.
   


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

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to