The Log4Net mailing list is a great source of information about using log4Net, in this forum we collect all the messages in the log4net user list and some selected threads from the developer list.
| Author |
Messages |
|
enoesque
 |
| 03/05/2009 5:58 PM |
|
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>
|
|
|
|
|
enoesque
 |
| 03/06/2009 4:45 PM |
|
Couldn't get this working so I ended up logging both using the AdoNetAppender.
eno
|
|
|
|
|
|
| You are not authorized to post a reply. |
|
|
|
ActiveForums 3.7
|