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/07/21 16:00:57 UTC

[jira] [Created] (LOG4J2-727) Need a way to create RollingRandomAccessFileAppender with custom manager

yair ogen created LOG4J2-727:
--------------------------------

             Summary: 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.2#6252)

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


Re: [jira] [Created] (LOG4J2-727) Need a way to create RollingRandomAccessFileAppender with custom manager

Posted by Remko Popma <re...@gmail.com>.
The pattern layout has a header attribute that you can set.
This will be included to the beginning of each file, included the rolled
over ones.
Does that do what you need?


On Mon, Jul 21, 2014 at 11:00 PM, yair ogen (JIRA) <ji...@apache.org> wrote:

> yair ogen created LOG4J2-727:
> --------------------------------
>
>              Summary: 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.2#6252)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>
>