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

MicroLite-ORM/MicroLite.Logging.Serilog

Repository files navigation

MicroLite.Logging.Serilog

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

Configuration

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

// Configure Serilog first, MicroLite.Logging.Serilog assumes it has already been configured.
var loggerConfiguration = new LoggerConfiguration();
...

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

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

For further information on configuring Serilog, see github.com/serilog/serilog/wiki/Configuration-Basics.

Supported .NET Versions

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

  • .NET Framework 4.5
    • MicroLite 7.0.0
    • Serilog 2.6.0

About

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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages