https://github.com/alsami/serilog.extensions.autofac.dependencyinjection
Autofac plug-in for Serilog.
https://github.com/alsami/serilog.extensions.autofac.dependencyinjection
autofac ilogger iloggerprovider serilog serilog-extension
Last synced: about 1 month ago
JSON representation
Autofac plug-in for Serilog.
- Host: GitHub
- URL: https://github.com/alsami/serilog.extensions.autofac.dependencyinjection
- Owner: alsami
- License: mit
- Created: 2018-12-10T12:51:38.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2022-05-31T13:11:19.000Z (almost 3 years ago)
- Last Synced: 2025-03-28T07:04:09.902Z (about 2 months ago)
- Topics: autofac, ilogger, iloggerprovider, serilog, serilog-extension
- Language: C#
- Homepage:
- Size: 54.7 KB
- Stars: 12
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Serilog.Extensions.Autofac.DependencyInjection
[](https://github.com/alsami/Serilog.Extensions.Autofac.DependencyInjection/actions/workflows/push.yml)
[](https://codecov.io/gh/alsami/Serilog.Extensions.Autofac.DependencyInjection)[](https://www.nuget.org/packages/Serilog.Extensions.Autofac.DependencyInjection)
[](https://www.nuget.org/packages/Serilog.Extensions.Autofac.DependencyInjection)This is a cross platform library, written in .netstandard 2.0, that serves as an extension for [autofac's containerbuilder](https://autofac.org/).
It will register all necessary classes and interfaces of Serilog using Microsoft's logging extensions## Installation
This package is available via nuget. You can install it using Visual-Studio-Nuget-Browser or by using the dotnet-cli
```
dotnet add package Serilog.Extensions.Autofac.DependencyInjection
```If you want to add a specific version of this package
```
dotnet add package Serilog.Extensions.Autofac.DependencyInjection --version 1.0.0
```For more information please visit the official [dotnet-cli documentation](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-add-package).
## Usage
For more information about the usage, please have a look at the
[samples](https://github.com/alsami/Serilog.Extensions.Autofac.DependencyInjection/tree/master/samples).