[ 
https://issues.apache.org/jira/browse/LOG4J2-1829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15889858#comment-15889858
 ] 

Remko Popma commented on LOG4J2-1829:
-------------------------------------

Have you seen the Custom Delete action supported by the Rollover File appender: 
https://logging.apache.org/log4j/2.x/manual/appenders.html#CustomDeleteOnRollover

> Delete log files older than x days and max size of a log file should be y(MB)
> -----------------------------------------------------------------------------
>
>                 Key: LOG4J2-1829
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1829
>             Project: Log4j 2
>          Issue Type: Bug
>            Reporter: Senthilraja
>
> I need log4j to handle the following requirements(both).
> 1) I want my log files to be created with maximum size of 100MB, exceeding 
> that size a new file should be created.
> 2) I need to mention number of days to maintain the log files. If the 
> specified days have crossed, the older log files should be deleted.
> Whether both the requirements can be handled in same log4j configuration.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org

Reply via email to