logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From enoesque <enoesqu...@yahoo.co.uk>
Subject Re: Adding a logger stops another one from working...!?
Date Fri, 06 Mar 2009 15:45:17 GMT

Couldn't get this working so I ended up logging both using the
AdoNetAppender.

eno


enoesque wrote:
> 
> 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--tp22355768p22374983.html
Sent from the Log4net - Users mailing list archive at Nabble.com.


Mime
View raw message