Soenneker.Utils.Logger
4.0.536
Prefix Reserved
dotnet add package Soenneker.Utils.Logger --version 4.0.536
NuGet\Install-Package Soenneker.Utils.Logger -Version 4.0.536
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="Soenneker.Utils.Logger" Version="4.0.536" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Utils.Logger" Version="4.0.536" />
<PackageReference Include="Soenneker.Utils.Logger" />
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 Soenneker.Utils.Logger --version 4.0.536
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Utils.Logger, 4.0.536"
#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.
#:package Soenneker.Utils.Logger@4.0.536
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Utils.Logger&version=4.0.536
#tool nuget:?package=Soenneker.Utils.Logger&version=4.0.536
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Utils.Logger
A useful utility library dealing with Serilog logging.
Installation
dotnet add package Soenneker.Utils.Logger
Quick start
using Soenneker.Utils.Logger;
Call the static LoggerUtil methods directly; no dependency-injection registration is required.
Common operations
Init()- Ensures the logging infrastructure is initialized. This method is safe to call multiple times and from multiple threads.BuildLogger()- CreatesILogger<T>through a cachedSerilogLoggerFactory.GetSwitch()- Gets the sharedLoggingLevelSwitchinstance. Returns the initializedLoggingLevelSwitch.SetLogLevelFromConfig()- Resolves and applies the minimum log level from configuration. Returns the resolvedLogEventLevel.SetLogLevel()- Sets the minimum log level on the sharedLoggingLevelSwitch. Returns the appliedLogEventLevel. Changing the log level affects all loggers created from this utility immediately.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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.
-
net10.0
- Serilog.Extensions.Logging (>= 10.0.0)
- Soenneker.Atomics.ValueBools (>= 4.0.38)
- Soenneker.Extensions.Configuration.Logging (>= 4.0.209)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Soenneker.Utils.Logger:
| Package | Downloads |
|---|---|
|
Soenneker.Tests.Unit
A base test providing faker and autofaker capabilities |
|
|
Soenneker.Extensions.LoggerConfiguration
A set of useful Serilog LoggerConfiguration extension methods |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.536 | 0 | 8/30/2026 |
| 4.0.535 | 0 | 8/30/2026 |
| 4.0.534 | 0 | 8/30/2026 |
| 4.0.533 | 0 | 8/29/2026 |
| 4.0.532 | 33 | 8/29/2026 |
| 4.0.531 | 183 | 8/29/2026 |
| 4.0.530 | 12,777 | 8/26/2026 |
| 4.0.529 | 830 | 8/26/2026 |
| 4.0.528 | 661 | 8/25/2026 |
| 4.0.527 | 10,924 | 8/22/2026 |
| 4.0.526 | 19,819 | 8/18/2026 |
| 4.0.525 | 13,225 | 8/13/2026 |
| 4.0.524 | 1,997 | 8/12/2026 |
| 4.0.523 | 42,321 | 8/8/2026 |
| 4.0.522 | 16,861 | 8/7/2026 |
| 4.0.521 | 19,152 | 7/29/2026 |
| 4.0.520 | 2,914 | 7/29/2026 |
| 4.0.519 | 17,290 | 7/28/2026 |
| 4.0.518 | 109 | 7/28/2026 |
| 4.0.517 | 728 | 7/28/2026 |
Loading failed
Update dependency Soenneker.Extensions.Configuration.Logging to 4.0.206 (#641)