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 NLog as the logging library.

License

Notifications You must be signed in to change notification settings

MicroLite-ORM/MicroLite.Logging.NLog

Repository files navigation

MicroLite.Logging.NLog

MicroLite.Logging.NLog is a .NET 4.5 library which adds an extension for the MicroLite ORM Framework to use NLog 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.NLog

Configuration

You can then load the extension in your application start-up:

// Load the extensions for MicroLite
Configure
   .Extensions()
   .WithNLog();

// Create the session factory...
Configure
   .Fluently()
   ...

For further information on configuring NLog, see github.com/nlog/nlog/wiki/Tutorial.

Supported .NET Versions

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

  • .NET Framework 4.5
    • MicroLite 7.0.0
    • NLog 4.4.0