Nano.Logging.Serilog
This package is part of the Nano Library, a set of reusable .NET libraries for building microservice applications. Nano addresses common non-business concerns such as logging, persistence, messaging, validation, and documentation, while remaining fully configurable and extensible, so applications can stay focused on business logic. See https://github.com/Nano-Core/Nano.Library for details.
Install
| Product | Versions |
|---|---|
| .NET |
README
Nano.Logging.Serilog
Serilog logging for Nano applications.
Table of Contents
Summary
This package provides the Serilog logging provider for Nano.
The provider is preconfigured to write log output to the console using a concise format:
{Timestamp:dd-MM-yyyy HH:mm:ss.ffffff} [{Level:u3}] {Message}{NewLine}{Exception}
đź“– Learn more about Nano Logging.
Try it out yourself using the Api.Logging.Serilog or Console.Logging.Serilog example.
Registration
Install the Nano.Logging.Serilog NuGet package.
dotnet add package Nano.Logging.Serilog;
Register the SerilogProvider provider during application startup in the ConfigureServices(...) method.
...
.ConfigureServices(services =>
{
services
.AddNanoLogging<SerilogProvider>();
})
...
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.