[ https://issues.apache.org/jira/browse/LOG4J2-1426?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ralph Goers reassigned LOG4J2-1426: ----------------------------------- Assignee: Ralph Goers > 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 > > 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 (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org