zhengchenyu commented on PR #6102:
URL: https://github.com/apache/hadoop/pull/6102#issuecomment-1741612979

   > ```
   > 0 disables the cap.
   > ```
   
   @ayushtkn Thanks for you reply!
   
   log4j.appender.CLA change s from 
'org.apache.hadoop.yarn.ContainerLogAppender' to 
'org.apache.log4j.RollingFileAppender'. 
   For ContainerLogAppender, 0 means disable cap.
   For RollingFileAppender, 0 means maxFileSize for roll back log is 0.
   
   If we use RollingFileAppender, I think maybe there are no way to disable the 
cap. But we can only set the enough big value for 
RollingFileAppender::maxBackups and RollingFileAppender::maxFileSize. See: 
https://github.com/apache/logging-log4j1/blob/b7e9154128cd4ae1244c877a6fda8f834a0f2247/src/main/java/org/apache/log4j/RollingFileAppender.java#L50
   


-- 
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: common-issues-unsubscr...@hadoop.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to