logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "karunakaran (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LOG4J2-1426) Log Rotation or rollover on every server shutdown in log4j2
Date Mon, 13 Jun 2016 12:48:20 GMT

     [ https://issues.apache.org/jira/browse/LOG4J2-1426?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

karunakaran updated LOG4J2-1426:
--------------------------------
    Summary: Log Rotation or rollover on every server shutdown in log4j2  (was: How to rotate
logs on every server shutdown in log4j2)

> 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
>
> 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-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message