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 "yair ogen (JIRA)" <ji...@apache.org> on 2014/09/28 13:35:34 UTC

[jira] [Comment Edited] (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=14151079#comment-14151079 ] 

yair ogen edited comment on LOG4J2-727 at 9/28/14 11:34 AM:
------------------------------------------------------------

Thanks. My header is dynamic - i.e. it has mutable state. 
Any solution for that?

Also - from reading the code wouldn't this header appear only in the first created file? Rolling files won't have this header - will they?


was (Author: yairogen):
Thanks. My header is dynamic - i.e. it has mutable state. 
Any solution for that?

> 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