EngineBay.Logging 3.1.4

dotnet add package EngineBay.Logging --version 3.1.4
                    
NuGet\Install-Package EngineBay.Logging -Version 3.1.4
                    
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.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EngineBay.Logging" Version="3.1.4" />
                    
Directory.Packages.props
<PackageReference Include="EngineBay.Logging" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add EngineBay.Logging --version 3.1.4
                    
#r "nuget: EngineBay.Logging, 3.1.4"
                    
#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.
#addin nuget:?package=EngineBay.Logging&version=3.1.4
                    
Install as a Cake Addin
#tool nuget:?package=EngineBay.Logging&version=3.1.4
                    
Install as a Cake Tool

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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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 327 1/10/2024
3.1.3 631 12/19/2023
3.1.2 689 12/6/2023
3.1.1 457 11/23/2023
3.1.0 159 11/23/2023
3.0.0 217 11/23/2023
2.0.3 1,292 10/31/2023
2.0.2 147 10/31/2023
2.0.1 187 10/10/2023
2.0.0 1,098 9/28/2023
1.0.2 164 9/27/2023
1.0.1 210 9/24/2023
1.0.0 603 9/23/2023
0.2.4 142 9/21/2023
0.2.3 1,630 4/9/2023
0.2.2 767 4/2/2023
0.2.1 1,459 3/29/2023
0.1.1 251 3/26/2023
0.1.0 245 3/26/2023