Hi,

I'm new to log4net, and I'm having a problem with multiple loggers.
        
I had an AdoNetAppender logger in my config file, and it worked fine,
logging issues to a database.

I then added another logger, to log other ERRORS to a text file.  This
actually stopped my AdoNetAppender from logging to my database.

The configs are below - am I missing something obvious?

Thanks

eno

<!-- ADDING THIS LOGGER STOPS THE LOGGER BELOW FROM WORKING.
ErrorFileAppender is a RollingFileAppender -->
    <logger name="App.ns1.Common.Utilities" additivity="true"> 
      <level value="ERROR"/>
      <appender-ref ref="ErrorFileAppender"/>
    </logger>

<!-- THIS LOGGER WORKS UNTIL I ADD THE LOGGER ABOVE -->
    <logger name="App.ns1" additivity="true"> 
      <level value="INFO"/>
      <appender-ref ref="AdoNetAppender"/>
    </logger>


-- 
View this message in context: 
http://www.nabble.com/Adding-a-logger-stops-another-one-from-working...%21--tp22355768p22355768.html
Sent from the Log4net - Users mailing list archive at Nabble.com.

Reply via email to