[ https://issues.apache.org/jira/browse/LOG4NET-565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16020351#comment-16020351 ]
Dominik Psenner commented on LOG4NET-565: ----------------------------------------- That's something that the xml configurator is already able to do already with appender and their properties. I assume that the following appender configuration would create the service locator: {code} <appender name="AppenderLocatorAppender" type="log4net.Appender.AppenderLocatorAppender"> <appenderlocator type="Namespace.AppenderLocatorImpl,appenderLocatorAssembly" /> </appender> {code} This is yet untested and needs to be confirmed, but I am confident it would work as this is used for custom evaluators, layouts, .. Also I am not sure if it would be possible to have an array of arguments to pass to the service locator impl, but I'm not sure that is even needed. If the appender locator has public properties to write to, it can be configured in the same way it is injected into the appender. > Dependency Injection support appender and logger types > ------------------------------------------------------ > > Key: LOG4NET-565 > URL: https://issues.apache.org/jira/browse/LOG4NET-565 > Project: Log4net > Issue Type: Improvement > Components: Appenders, Core > Reporter: Hitesh Chauhan > Labels: Enhancement > > I have seen demand for dependency injection support in log4net. I have added > that behavior to my local repository. And I would like to push that to > log4net library. > e.g. appender configuration > <appender > name="ServiceAppender" > type="LoggingServiceAppender" > serviceLocatorType="Log4NetServiceLocator"> -- This message was sent by Atlassian JIRA (v6.3.15#6346)