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 "Sudharma Puranik (JIRA)" <ji...@apache.org> on 2013/11/15 08:13:20 UTC

[jira] [Commented] (LOG4J2-15) Provide a "Proxy" Appender to support lazy initialization of Appenders.

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

Sudharma Puranik commented on LOG4J2-15:
----------------------------------------

I tried using it but it doesnot work. I made the deferChildren=true but it says an error like . I have provided the Triggering policy already.
{quote}
A TriggeringPolicy must be provided
2013-11-15 12:33:09,765 ERROR Unable to create Appender of type RollingRandomAccessFile

{quote}

> Provide a "Proxy" Appender to support lazy initialization of Appenders. 
> ------------------------------------------------------------------------
>
>                 Key: LOG4J2-15
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-15
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Appenders
>            Reporter: Ralph Goers
>            Assignee: Ralph Goers
>             Fix For: 2.0-alpha1
>
>
> In the environment I work in we share the logging configuration across several JVMs. Some Appender definitions might not apply to a particular JVM. Rather than requiring the classes for the actual appender be available during initialization we had our own logging framework that supported Appender creation the first time it was published to. This can be accomplished by configuring a Proxy and the actual Appender under the proxy.  



--
This message was sent by Atlassian JIRA
(v6.1#6144)

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