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.
| Branch | Status |
|---|---|
| /develop | |
| /master |
Install the nuget package Install-Package MicroLite.Extensions.Serilog
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.
The NuGet Package contains binaries compiled against (dependencies indented):
- .NET Framework 4.5
- MicroLite 7.0.0
- Serilog 2.6.0