logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remko Popma (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-1228) Multiple footers written to file on system restart
Date Tue, 07 Jun 2016 02:10:21 GMT

    [ https://issues.apache.org/jira/browse/LOG4J2-1228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15317670#comment-15317670

Remko Popma commented on LOG4J2-1228:

[~sdavids], a fix for issue LOG4J2-1405 will be included in the upcoming 2.6.1 release (now
being reviewed, should be available in a few days).
Can you try if the issue still exists with 2.6.1?

> Multiple footers written to file on system restart
> --------------------------------------------------
>                 Key: LOG4J2-1228
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1228
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Layouts
>            Reporter: Steve Davids
>            Assignee: Ralph Goers
>         Attachments: LOG4J2-1228-test.diff
> I created a custom layout that appends a header and footer to a rolling file appender
with a time based and startup trigger policies which works great during normal circumstances
except when it comes to system restarts. On shutdown the file is closed with the footer being
written to the file, then on startup the startup trigger policy will open the file then immediately
roll thus printing the footer again on rollover (prior to v2.4 the header was also written
on startup LOG4J2-1030). I am attempting to produce well-formed XML with this particular use-case
but it is getting mangled at this particular point. Ideally we can either have the footer
either not print the second time or just perform the rollover on shutdown.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message