EngineBay.Logging
3.1.4
dotnet add package EngineBay.Logging --version 3.1.4
NuGet\Install-Package EngineBay.Logging -Version 3.1.4
<PackageReference Include="EngineBay.Logging" Version="3.1.4" />
paket add EngineBay.Logging --version 3.1.4
#r "nuget: EngineBay.Logging, 3.1.4"
// Install EngineBay.Logging as a Cake Addin #addin nuget:?package=EngineBay.Logging&version=3.1.4 // Install EngineBay.Logging as a Cake Tool #tool nuget:?package=EngineBay.Logging&version=3.1.4
EngineBay.Logging
Logging module for EngineBay published to EngineBay.Logging on NuGet.
About
The module registration adds a logging service to the service collection, with a configurable logging level. Some filters are applied, giving "noisy systems" (e.g. Microsoft
, Microsoft.AspNetCore.DataProtection
, and System
) a log level one higher so that the EngineBay's log level can be set to something lower without being drowned out by logs from these libraries.
The module also contains a configuration class that exposes two static methods which provide appropriate values based on the environment variables LOGGING_SENSITIVE_DATA_ENABLED
and LOGGING_LEVEL
.
Usage
ILogger<T> logger
can be dependency injected, where T is the type whose name is used for the logger category name. This logger can be used to log messages at different logging levels.
You may wish to build extensions, such as EngineBay.Authentication's LoggerExtensions, if you have common log messages you wish to reuse.
Registration
This module cannot run on its own. You will need to register it in your application to use its functionality. See the Demo API registration guide.
Environment Variables
See the Documentation Portal.
Dependencies
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- EngineBay.Core (>= 10.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.1.4 | 292 | 1/10/2024 |
3.1.3 | 602 | 12/19/2023 |
3.1.2 | 638 | 12/6/2023 |
3.1.1 | 438 | 11/23/2023 |
3.1.0 | 148 | 11/23/2023 |
3.0.0 | 206 | 11/23/2023 |
2.0.3 | 1,246 | 10/31/2023 |
2.0.2 | 136 | 10/31/2023 |
2.0.1 | 169 | 10/10/2023 |
2.0.0 | 1,074 | 9/28/2023 |
1.0.2 | 148 | 9/27/2023 |
1.0.1 | 194 | 9/24/2023 |
1.0.0 | 588 | 9/23/2023 |
0.2.4 | 124 | 9/21/2023 |
0.2.3 | 1,600 | 4/9/2023 |
0.2.2 | 736 | 4/2/2023 |
0.2.1 | 1,423 | 3/29/2023 |
0.1.1 | 211 | 3/26/2023 |
0.1.0 | 214 | 3/26/2023 |