Skip to content
This repository has been archived by the owner on Oct 27, 2020. It is now read-only.

An extension for the MicroLite ORM Framework to use log4net as the logging library.

License

Notifications You must be signed in to change notification settings

MicroLite-ORM/MicroLite.Logging.Log4Net

Repository files navigation

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

Branch Status
/develop GitHub last commit (branch) Build Status Nuget (with prereleases)
/master GitHub 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):

  • .NET Framework 4.5
    • MicroLite 7.0.0
    • log4net 2.0.8