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

David Juffermans updated LOG4NET-295:
-------------------------------------


Never mind! I recently found out somebosy put an XmlConfiguratorConfigure() 
somewhere deep in oone of our own core components, basically overwriting the 
previous configurtion with an old one in app.config. This bug can be closed.

> StringMatchFilter isn't applied when using XmlConfigurator
> ----------------------------------------------------------
>
>                 Key: LOG4NET-295
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-295
>             Project: Log4net
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 1.2.10
>         Environment: Windows server 2008
>            Reporter: David Juffermans
>
> I have an application running, using a log4net configuration in a standalone 
> config file called "log4net.config". There is one appender configured in it:
> <appender name="RollingFileAppender" 
> type="log4net.Appender.RollingFileAppender">
>       <file value="C:\Log\Sts.Services.PricingParameterService.log"/>
>       <appendToFile value="true"/>
>       <rollingStyle value="Date"/>
>       <datePattern value=".yyyyMMdd.lo\g"/>
>       <layout type="log4net.Layout.PatternLayout,log4net">
>               <param name="ConversionPattern" value="%date{ISO8601} [%thread] 
> %-5level %logger - %message%newline"/>
>       </layout>
>       <filter type="log4net.Filter.StringMatchFilter">
>               <stringToMatch value="Heartbeat" /> 
>               <acceptOnMatch value="false" />
>       </filter> 
>       <filter type="log4net.Filter.StringMatchFilter">
>               <stringToMatch value="ApplicationInfo" />
>               <acceptOnMatch value="false" />
>       </filter>
> </appender>
> I load the config file using XmlConfigurator.ConfigureAndWatch(), the app 
> starts fine and logging works fine to, except that the string filters aren't 
> applied. When I save the config file so it is reloaded by log4net the filters 
> are applied correctly.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to