[
https://issues.apache.org/jira/browse/LOG4J2-271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13696106#comment-13696106
]
Remko Popma edited comment on LOG4J2-271 at 6/29/13 12:01 PM:
--------------------------------------------------------------
Sorry, I missed your comment.
This is the same issue as LOG4J-267. If append=false, the rollover time would
be set to a long with value zero, which translates to Jan 1, 1970. I will
commit the fix soon.
was (Author: [email protected]):
Not quite sure from the description, but I think this is the same issue as
LOG4J-267. If append=false, the rollover time would be set to a long with value
zero, which translates to Jan 1, 1970.
> FastRollingFileAppender
> -----------------------
>
> Key: LOG4J2-271
> URL: https://issues.apache.org/jira/browse/LOG4J2-271
> Project: Log4j 2
> Issue Type: Bug
> Components: Appenders
> Affects Versions: 2.0-beta6
> Environment: Window7
> apache-tomcat-7.0.39
> java1.7
> Reporter: fxc
> Labels: patch
> Fix For: 2.0-beta6
>
> Original Estimate: 372h
> Remaining Estimate: 372h
>
> log4j2.xml:
> ...
> <FastRollingFile name="Media" fileName="${medialog}.log"
> immediateFlush="true"
> filePattern="${medialog}-%d{MM-dd-yyyy}-%i.log">
> <PatternLayout>
> <pattern>%d [%t] [%-5level] [%F:%L] %msg%n
> </pattern>
> </PatternLayout>
> <Policies>
> <TimeBasedTriggeringPolicy />
> <SizeBasedTriggeringPolicy size="100 MB" />
> </Policies>
> </FastRollingFile>
> .....
> When log file created,like this:
> media-01-01-1970-1.log size:1KB
> media.log
> I set SizeBasedTriggeringPolicy 100 MB ,but the size of file
> "media-01-01-1970-1.log" is 1KB and time ends with file name is not right
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]