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 "Alexander Khokhlov (JIRA)" <ji...@apache.org> on 2014/01/23 00:15:24 UTC
[jira] [Created] (LOG4J2-509) Substitution for a {%i} index does
not work properly when date pattern is contains seconds.
Alexander Khokhlov created LOG4J2-509:
-----------------------------------------
Summary: Substitution for a {%i} index does not work properly when date pattern is contains seconds.
Key: LOG4J2-509
URL: https://issues.apache.org/jira/browse/LOG4J2-509
Project: Log4j 2
Issue Type: Bug
Components: Appenders, Core
Affects Versions: 2.0-beta9, 2.0-rc1
Environment: <RollingRandomAccessFile
fileName="target/output.log"
filePattern="target//output.$${date:yyyyMMdd-HHmmss}-%i.log"
name="GPE_FRONTEND">
<Policies>
<OnStartupTriggeringPolicy/>
<SizeBasedTriggeringPolicy size="20 KB"/>
</Policies>
<DefaultRolloverStrategy max="10"/>
<PatternLayout>
<Pattern>%d %p %C{1.} [%t] %m%n</Pattern>
</PatternLayout>
</RollingRandomAccessFile>
Reporter: Alexander Khokhlov
With provided configuration, result files will be named as follows:
output.20140123-005437-1.log
output.20140123-005440-1.log
output.20140123-005444-1.log
output.20140123-005448-1.log
output.20140123-005451-1.log
As a result, DefaultRolloverStrategy also not working.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org