[
https://issues.apache.org/jira/browse/LOG4J2-3001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17269357#comment-17269357
]
Stamatis Zampetakis commented on LOG4J2-3001:
---------------------------------------------
I see two ways on how this can be achieved:
# New attribute in {{RollingFileAppender}}/{{RollingRandomAccessFileAppender}}
# New API in {{TriggeringPolicy}} returning for instance an enumeration
BEFORE/AFTER.
> Support rollover after appending event
> --------------------------------------
>
> Key: LOG4J2-3001
> URL: https://issues.apache.org/jira/browse/LOG4J2-3001
> Project: Log4j 2
> Issue Type: New Feature
> Components: Core
> Affects Versions: 2.14.0
> Reporter: Stamatis Zampetakis
> Priority: Major
>
> Rollover actions are triggered based on a LogEvent and the rollover if
> necessary is performed before appending the actual log event. Currently, it
> is not possible to first append the log event and then perform the rollover
> if necessary. In some situations it is necessary to have finer control on
> when the rollover is performed.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)