You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Remko Popma (JIRA)" <ji...@apache.org> on 2015/10/18 17:44:05 UTC
[jira] [Resolved] (LOG4J2-573) TimeBasedTriggeringPolicy does not
accept %i increment FilePattern
[ https://issues.apache.org/jira/browse/LOG4J2-573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Remko Popma resolved LOG4J2-573.
--------------------------------
Resolution: Won't Fix
Closing as Won't Fix.
If this request is still required, please reopen or open a new ticket with a full description of how the rollover should work when a TimeBasedTriggeringPolicy is specified but the filePattern only contains a %i variable.
> TimeBasedTriggeringPolicy does not accept %i increment FilePattern
> ------------------------------------------------------------------
>
> Key: LOG4J2-573
> URL: https://issues.apache.org/jira/browse/LOG4J2-573
> Project: Log4j 2
> Issue Type: Improvement
> Components: Appenders
> Affects Versions: 2.0-rc1
> Reporter: Steven McCoy
> Priority: Minor
> Labels: Rollover
>
> The following configuration should be valid but raises an exception because the filePattern contains no date however it does contain an increment pattern.
> {code:xml}
> <RollingRandomAccessFile name="File" fileName="${filename}"
> filePattern="logs/icap.log-%i">
> <PatternLayout pattern="%m%n"/>
> <Policies>
> <OnStartupTriggeringPolicy />
> <TimeBasedTriggeringPolicy interval="12" modulate="true"/>
> <SizeBasedTriggeringPolicy size="500 MB"/>
> </Policies>
> <DefaultRolloverStrategy fileIndex="min" max="3"/>
> </RollingRandomAccessFile>
> {code}
--
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