MicroLite.Logging.Log4Net is a .NET 4.5 library which adds an extension for the MicroLite ORM Framework to use log4net as the logging library.
Branch | Status |
---|---|
/develop | |
/master |
Install the nuget package Install-Package MicroLite.Extensions.Log4Net
You can then load the extension in your application start-up:
// Configure log4net first, MicroLite.Logging.Log4Net assumes it has already been configured.
log4net.Config.XmlConfigurator.Configure();
// Load the extensions for MicroLite
Configure
.Extensions()
.WithLog4Net();
// Create the session factory...
Configure
.Fluently()
...
For further information on configuring log4net, see logging.apache.org/log4net/release/config-examples.html.
The NuGet Package contains binaries compiled against (dependencies indented):
- .NET Framework 4.5
- MicroLite 7.0.0
- log4net 2.0.8