You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (Jira)" <ji...@apache.org> on 2022/02/19 08:46:00 UTC
[jira] [Reopened] (LOG4J2-1426) Log Rotation or rollover on every server shutdown in log4j2
[ https://issues.apache.org/jira/browse/LOG4J2-1426?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ralph Goers reopened LOG4J2-1426:
---------------------------------
> Log Rotation or rollover on every server shutdown in log4j2
> -----------------------------------------------------------
>
> Key: LOG4J2-1426
> URL: https://issues.apache.org/jira/browse/LOG4J2-1426
> Project: Log4j 2
> Issue Type: New Feature
> Reporter: karunakaran
> Assignee: Ralph Goers
> Priority: Major
>
> My requirement is log4j2 should rotate log files when the server shutdown. This option is currently not available in Rotating policy.
> Currently I am using the following policies:-
> <Policies>
> <SizeBasedTriggeringPolicy size="2000 MB" />
> <TimeBasedTriggeringPolicy />
> </Policies>
> Besides, I want to have log files should be rotated with server gets shutdown.
> I have used "OnStartupTriggeringPolicy". But when I use it, log files are rotating after server stop. But I need log files should be rotated when server shutdown.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)