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 2014/09/24 12:45:34 UTC
[jira] [Commented] (LOG4J2-727) Need a way to create
RollingRandomAccessFileAppender with custom manager
[ https://issues.apache.org/jira/browse/LOG4J2-727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14146189#comment-14146189 ]
Remko Popma commented on LOG4J2-727:
------------------------------------
There is a built-in header/footer function you can use. This should work with RollingRandomAccessFileAppender (since LOG4J2-581 was fixed).
The header/footer feature is documented in the Layouts manual page. For example, see [Pattern Layout|http://logging.apache.org/log4j/2.x/manual/layouts.html#PatternLayout].
> Need a way to create RollingRandomAccessFileAppender with custom manager
> ------------------------------------------------------------------------
>
> Key: LOG4J2-727
> URL: https://issues.apache.org/jira/browse/LOG4J2-727
> Project: Log4j 2
> Issue Type: Improvement
> Components: Core
> Affects Versions: 2.0
> Reporter: yair ogen
>
> I have a requirement to dump a header in the beginning of each new rolled file. I'd like to extend RollingRandomAccessFileManagerFactory and set it on the appender I use but I don't see any option to do so.
--
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