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 |
|
Gourlay, Colin
 |
| 05/30/2008 2:11 PM |
|
Hello
Is it possible to filter out the NHibernate logs from my application logs via the XML config file.
The logging is working great but I am finding that the inclusion of the NHibernate logs is way to verbose for my needs and that the information I am really interested in is being ‘lost’ (or rather harder to find) in the amount of information being logged.
If anyone can point me in the right direction I would be very grateful.
Thanks
Colin
Edinburgh Business School is a Charity Registered in Scotland, SC026900
|
|
|
|
|
Rob Prouse
 |
| 05/30/2008 2:51 PM |
|
Are all of your log names based on namespaces that all derive from a minimal number of root namespaces such as your company name? If so, don’t set up a root logger, just set up loggers for those root namespaces.
Another option is to add a LoggerMatchFilter to your appenders. That filter should match NHibernate and set AcceptOnMatch to false. This should filter out the NHibernate namespace.
Rob Prouse
|
|
|
|
|
|
| You are not authorized to post a reply. |
|
|
|
ActiveForums 3.7
|