TCIS.Logging.Abstractions
1.0.1-rc.7
See the version list below for details.
dotnet add package TCIS.Logging.Abstractions --version 1.0.1-rc.7
NuGet\Install-Package TCIS.Logging.Abstractions -Version 1.0.1-rc.7
<PackageReference Include="TCIS.Logging.Abstractions" Version="1.0.1-rc.7" />
<PackageVersion Include="TCIS.Logging.Abstractions" Version="1.0.1-rc.7" />
<PackageReference Include="TCIS.Logging.Abstractions" />
paket add TCIS.Logging.Abstractions --version 1.0.1-rc.7
#r "nuget: TCIS.Logging.Abstractions, 1.0.1-rc.7"
#:package TCIS.Logging.Abstractions@1.0.1-rc.7
#addin nuget:?package=TCIS.Logging.Abstractions&version=1.0.1-rc.7&prerelease
#tool nuget:?package=TCIS.Logging.Abstractions&version=1.0.1-rc.7&prerelease
TCIS.Logging.Abstractions
📖 Overview
TCIS.Logging.Abstractions contains the core interfaces and contracts used to define the centralized logging system in the TCIS Framework. This library establishes a standard logging structure without directly depending on any specific logging framework (like Serilog or NLog).
✨ Features
ILogWriter/ILogWriter<T>: The main interface for logging with a structured request object mechanism.- NullLogWriter Fallback: A safe fallback mechanism that ensures Unit Tests or projects that do not call external logging configurations still function properly without NullReference exceptions.
- Contextual Logging: Definitions such as
ILogDetailSinkandIInterceptedLogWritersupport log collection across the entire business flow.
📦 Installation
dotnet add package TCIS.Logging.Abstractions
🚀 Usage
1. Registering the Fallback (Typically used in Unit Tests)
Ensure your service remains operational (using NullLogWriter) if the actual logging system has not been registered.
using Microsoft.Extensions.DependencyInjection;
using TCIS.Logging.Abstractions.Extensions;
var services = new ServiceCollection();
services.AddNullLogWriterFallback();
2. Injecting and Using ILogWriter
In Domain services or Controllers:
using TCIS.Logging.Abstractions.Abstractions;
public class OrderService
{
private const string Provider = "order-service";
private readonly ILogWriter<OrderService> _logger;
public OrderService(ILogWriter<OrderService> logger)
{
_logger = logger;
}
public void ProcessOrder(string orderId)
{
try
{
// Logic processing...
_logger.LogInformation($"[{Provider}] ProcessOrder: Success", new { OrderId = orderId });
}
catch (Exception ex)
{
_logger.LogException(ex, new { OrderId = orderId, Action = "ProcessOrder" });
throw;
}
}
}
⚠️ Mandatory Log Format Rules
Always adhere to the format [{provider}] {operation}: {message} with a structured request object passed as the final parameter.
| 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 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. |
| .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.Bcl.AsyncInterfaces (>= 9.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- System.Diagnostics.DiagnosticSource (>= 9.0.0)
- System.Text.Encodings.Web (>= 9.0.0)
- System.Text.Json (>= 9.0.0)
- TCIS.Core (>= 1.0.1-rc.7)
-
net8.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- System.Diagnostics.DiagnosticSource (>= 10.0.0)
- TCIS.Core (>= 1.0.1-rc.7)
NuGet packages (17)
Showing the top 5 NuGet packages that depend on TCIS.Logging.Abstractions:
| Package | Downloads |
|---|---|
|
TCIS.Logging
TCIS Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core. Logging services and integration for TCIS Framework. |
|
|
TCIS.MultiTenancy
TCIS Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core. Multi-tenancy core abstractions and services for TCIS Framework. |
|
|
TCIS.EventBus
TCIS Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core. Event Bus abstractions and base implementation for TCIS Framework. |
|
|
TCIS.Http
TCIS Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core. HTTP client extensions and utilities for TCIS Framework. |
|
|
TCIS.Caching
TCIS Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core. Core caching abstractions and services for TCIS Framework. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.1-rc.10 | 56 | 10/8/2026 |
| 1.0.1-rc.9 | 59 | 10/8/2026 |
| 1.0.1-rc.8 | 66 | 10/8/2026 |
| 1.0.1-rc.7 | 64 | 10/8/2026 |
| 1.0.1-rc.6 | 91 | 10/8/2026 |
| 1.0.1-rc.4 | 90 | 10/7/2026 |
| 1.0.1-rc.3 | 98 | 10/7/2026 |
| 1.0.1-rc.2 | 181 | 10/5/2026 |
| 1.0.1-rc.1 | 185 | 10/5/2026 |
| 1.0.0 | 618 | 10/1/2026 |
| 1.0.0-rc.52 | 218 | 9/29/2026 |
| 1.0.0-rc.51 | 224 | 9/23/2026 |
| 1.0.0-rc.50 | 211 | 9/21/2026 |
| 1.0.0-rc.49 | 227 | 9/18/2026 |
| 1.0.0-rc.47 | 217 | 9/17/2026 |
| 1.0.0-rc.46 | 218 | 9/17/2026 |
| 1.0.0-rc.45 | 285 | 9/11/2026 |
| 1.0.0-rc.44 | 297 | 9/10/2026 |
| 1.0.0-rc.43 | 190 | 9/10/2026 |
| 1.0.0-rc.42 | 244 | 9/9/2026 |