EngineBay.Logging 3.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package EngineBay.Logging --version 3.1.1                
NuGet\Install-Package EngineBay.Logging -Version 3.1.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EngineBay.Logging" Version="3.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EngineBay.Logging --version 3.1.1                
#r "nuget: EngineBay.Logging, 3.1.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install EngineBay.Logging as a Cake Addin
#addin nuget:?package=EngineBay.Logging&version=3.1.1

// Install EngineBay.Logging as a Cake Tool
#tool nuget:?package=EngineBay.Logging&version=3.1.1                

EngineBay.Logging

NuGet version Maintainability Test Coverage

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 294 1/10/2024
3.1.3 604 12/19/2023
3.1.2 640 12/6/2023
3.1.1 440 11/23/2023
3.1.0 150 11/23/2023
3.0.0 208 11/23/2023
2.0.3 1,248 10/31/2023
2.0.2 138 10/31/2023
2.0.1 172 10/10/2023
2.0.0 1,076 9/28/2023
1.0.2 150 9/27/2023
1.0.1 196 9/24/2023
1.0.0 590 9/23/2023
0.2.4 126 9/21/2023
0.2.3 1,602 4/9/2023
0.2.2 738 4/2/2023
0.2.1 1,425 3/29/2023
0.1.1 213 3/26/2023
0.1.0 216 3/26/2023