Nano.Logging.Microsoft
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.Microsoft
Microsoft logging for Nano applications.
Table of Contents
Summary
This package provides the Microsoft 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.Microsoft or Console.Logging.Microsoft example.
Registration
Install the Nano.Logging.Microsoft NuGet package.
dotnet add package Nano.Logging.Microsoft;
Register the MicrosoftProvider provider during application startup in the ConfigureServices(...) method.
...
.ConfigureServices(services =>
{
services
.AddNanoLogging<MicrosoftProvider>();
})
...
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.