[Valid RSS]

Database testing with Mono and NUnit

A class to set the database in a well know status before running an integration [...]

Obtain the root logger programmatically in log4net

Share

If you use log4net, you could have the need to configure the loggers programamtically. The problem arise when you want access to the root logger, since the documentation does not explain well how to obtain it.
So, here’s a snippet that show how to do it. Don’t forget to imort the log4net namespaces.

using log4net;

using log4net.Core;

using log4net.Appender;

using [...]