You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2021/01/21 14:59:00 UTC

[jira] [Comment Edited] (LOG4J2-3001) Support rollover after appending event

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

Stamatis Zampetakis edited comment on LOG4J2-3001 at 1/21/21, 2:58 PM:
-----------------------------------------------------------------------

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.

If there is interest for this feature I can try to prepare a PR.


was (Author: zabetak):
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)