CasCap.Common.Logging
4.16.0
Prefix Reserved
dotnet add package CasCap.Common.Logging --version 4.16.0
NuGet\Install-Package CasCap.Common.Logging -Version 4.16.0
<PackageReference Include="CasCap.Common.Logging" Version="4.16.0" />
<PackageVersion Include="CasCap.Common.Logging" Version="4.16.0" />
<PackageReference Include="CasCap.Common.Logging" />
paket add CasCap.Common.Logging --version 4.16.0
#r "nuget: CasCap.Common.Logging, 4.16.0"
#:package CasCap.Common.Logging@4.16.0
#addin nuget:?package=CasCap.Common.Logging&version=4.16.0
#tool nuget:?package=CasCap.Common.Logging&version=4.16.0
CasCap.Common.Logging
Static logging abstraction via ApplicationLogging, providing a globally accessible ILoggerFactory for contexts where constructor injection is unavailable.
Installation
dotnet add package CasCap.Common.Logging
Target frameworks: netstandard2.0, net8.0, net9.0, net10.0
Usage
Connect the application's logging factory before calling helpers that create static loggers:
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
var builder = Host.CreateApplicationBuilder(args);
using var host = builder.Build();
host.Services.AddStaticLogging();
var logger = ApplicationLogging.CreateLogger("Example");
logger.LogInformation("Application logging is ready");
Use ILogger<T> injection for ordinary services; the static factory is for code without constructor
injection. It starts as NullLoggerFactory.Instance, so logging before initialization is discarded.
Loggers already created from that null factory are not retroactively connected.
ApplicationLogging.CreateLogger<T>() creates a category from a type; CreateLogger(string) accepts
an explicit category. AddStaticLogging() requires an ILoggerFactory registered in the provider.
The application owns that factory's lifetime. The accessor is process-wide, so multiple hosts or
parallel tests must account for sharing it.
For ASP.NET Core Serilog setup, see CasCap.Common.Hosting.AspNetCore.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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 is compatible. 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 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.13)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.13)
- Microsoft.Extensions.Logging.Console (>= 10.0.13)
- Microsoft.Extensions.Logging.Debug (>= 10.0.13)
-
net10.0
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.13)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.13)
- Microsoft.Extensions.Logging.Console (>= 10.0.13)
- Microsoft.Extensions.Logging.Debug (>= 10.0.13)
-
net8.0
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.13)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.13)
- Microsoft.Extensions.Logging.Console (>= 10.0.13)
- Microsoft.Extensions.Logging.Debug (>= 10.0.13)
-
net9.0
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.13)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.13)
- Microsoft.Extensions.Logging.Console (>= 10.0.13)
- Microsoft.Extensions.Logging.Debug (>= 10.0.13)
NuGet packages (31)
Showing the top 5 NuGet packages that depend on CasCap.Common.Logging:
| Package | Downloads |
|---|---|
|
CasCap.Common.Extensions
Helper library of commonly used extension methods. |
|
|
CasCap.Common.Net
Helper library for common HttpClient/WebAPI requirements. |
|
|
CasCap.Common.Caching
Helper library for local and remote object caching. |
|
|
CasCap.Common.Serialization.Json
System.Text.Json serialization helpers and custom JsonConverter implementations. |
|
|
CasCap.Common.Testing
xUnit v3 test infrastructure — Microsoft.Extensions.Logging redirection to ITestOutputHelper, conditional-skip attributes for CI environments, an HTTP stub handler and a disposable temporary file helper. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.16.0 | 0 | 10/21/2026 |
| 4.15.0 | 479 | 10/6/2026 |
| 4.14.4 | 782 | 10/4/2026 |
| 4.14.3 | 447 | 9/28/2026 |
| 4.14.2 | 816 | 9/25/2026 |
| 4.14.1 | 840 | 9/23/2026 |
| 4.14.0 | 1,306 | 9/19/2026 |
| 4.13.0 | 406 | 9/15/2026 |
| 4.12.8 | 860 | 9/10/2026 |
| 4.12.7 | 752 | 9/4/2026 |
| 4.12.6 | 911 | 9/1/2026 |
| 4.12.5 | 698 | 8/20/2026 |
| 4.12.4 | 919 | 8/18/2026 |
| 4.12.3 | 1,174 | 7/15/2026 |
| 4.12.2 | 985 | 6/26/2026 |
| 4.12.1 | 735 | 6/14/2026 |
| 4.12.0 | 962 | 6/12/2026 |
| 4.11.9 | 913 | 6/10/2026 |
| 4.11.8 | 1,766 | 5/27/2026 |
| 4.11.7 | 562 | 5/27/2026 |