Home

Awesome

MicroLite.Logging.Log4Net

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.

Nuget

BranchStatus
/developGitHub last commit (branch) Build Status Nuget (with prereleases)
/masterGitHub last commit Build Status Nuget GitHub Release Date

Installation

Install the nuget package Install-Package MicroLite.Extensions.Log4Net

Configuration

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.

Supported .NET Versions

The NuGet Package contains binaries compiled against (dependencies indented):