logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ron Grabowski (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LOG4NET-153) Make it easier to configure multiple appenders in code using BasicConfigurator
Date Sat, 14 Jun 2008 14:13:45 GMT

     [ https://issues.apache.org/jira/browse/LOG4NET-153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ron Grabowski updated LOG4NET-153:
----------------------------------

        Fix Version/s: 1.2.11
    Affects Version/s: 1.2.10

> Make it easier to configure multiple appenders in code using BasicConfigurator
> ------------------------------------------------------------------------------
>
>                 Key: LOG4NET-153
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-153
>             Project: Log4net
>          Issue Type: Improvement
>    Affects Versions: 1.2.10
>            Reporter: Ron Grabowski
>            Priority: Minor
>             Fix For: 1.2.11
>
>
> Users wanting to configure log4net in code using more than just a single appender must
cast the repository into a Hierarchy then manually add elements:
>  Repository.Hierarchy.Hierarchy hierarchy = 
>      (Repository.Hierarchy.Hierarchy)LogManager.GetRepository();
>  hierarchy.Root.AddAppender(alpha);
>  hierarchy.Root.AddAppender(beta);
>  hierarchy.Configured = true;
> The BasicConfigurator should make it easier to accomplish this:
>  BasicConfigurator.Configure(alpha, beta);
> This can be accomplished by adding an overload to Configure that accepts an params IAppender[]:
>  IBasicRepositoryConfigurator.Configure(params IAppender[] appenders)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message