TCIS.Logging
1.0.0-rc.9
dotnet add package TCIS.Logging --version 1.0.0-rc.9
NuGet\Install-Package TCIS.Logging -Version 1.0.0-rc.9
<PackageReference Include="TCIS.Logging" Version="1.0.0-rc.9" />
<PackageVersion Include="TCIS.Logging" Version="1.0.0-rc.9" />
<PackageReference Include="TCIS.Logging" />
paket add TCIS.Logging --version 1.0.0-rc.9
#r "nuget: TCIS.Logging, 1.0.0-rc.9"
#:package TCIS.Logging@1.0.0-rc.9
#addin nuget:?package=TCIS.Logging&version=1.0.0-rc.9&prerelease
#tool nuget:?package=TCIS.Logging&version=1.0.0-rc.9&prerelease
TCIS.Logging
The core library providing foundational abstractions and infrastructure for the Logging system across all TCIS applications.
🌟 Overview
TCIS.Logging serves as the standard logging framework, integrated with IWorkContext to capture user and trace information, while utilizing a Channel mechanism for high-performance, asynchronous (non-blocking) logging.
📦 Installation
Install the package via NuGet or .NET CLI:
dotnet add package TCIS.Logging
⚙️ Configuration (appsettings.json)
You can configure the queue limit for the Background Logging Process:
{
"TLogSettings": {
"MaxQueueSize": 10000
}
}
🚀 Usage
In Program.cs, add the Logging service to the DI container:
using TCIS.Logging.Extensions;
var builder = WebApplication.CreateBuilder(args);
// Method 1: Read from IConfiguration (default section: "TLogSettings")
builder.Services.AddTLogging(builder.Configuration);
// Method 2: Configure via Action
builder.Services.AddTLogging(options =>
{
options.MaxQueueSize = 5000;
});
// (Optional) Add Console Sink to display formatted logs in Development
if (builder.Environment.IsDevelopment())
{
builder.Services.AddTCISConsoleSink();
}
💡 Basic Example
Use ILogWriter (do not use ILogger directly from Microsoft Logging to comply with TCIS rules) in your services:
using TCIS.Logging.Abstractions.Abstractions;
public class MyService
{
private readonly ILogWriter _logger;
private const string Provider = "my-service";
public MyService(ILogWriter logger)
{
_logger = logger;
}
public async Task DoWorkAsync()
{
_logger.LogInformation(
$"[{Provider}] DoWorkAsync: Processing data...",
nameof(DoWorkAsync),
new { Step = 1, Data = "Sample" }
);
}
}
| Product | Versions 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. |
-
net8.0
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Options (>= 9.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 9.0.0)
- TCIS.Core (>= 1.0.0-rc.9)
- TCIS.Logging.Abstractions (>= 1.0.0-rc.9)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on TCIS.Logging:
| Package | Downloads |
|---|---|
|
TCIS.AspNetCore
TCIS Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core. ASP.NET Core integration 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.Http.Grpc
TCIS Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core. gRPC client and server integration for TCIS Framework. |
|
|
TCIS.Logging.Autofac
TCIS Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core. Autofac integration for TCIS Logging. |
|
|
TCIS.Logging.Serilog
TCIS Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core. Serilog integration for TCIS Logging. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-rc.9 | 32 | 7/21/2026 |
| 1.0.0-rc.8 | 29 | 7/21/2026 |
| 1.0.0-rc.7 | 81 | 7/17/2026 |
| 1.0.0-rc.6 | 94 | 7/7/2026 |
| 1.0.0-rc.5 | 95 | 7/7/2026 |
| 1.0.0-rc.4 | 98 | 6/24/2026 |
| 1.0.0-rc.2 | 72 | 5/12/2026 |
| 1.0.0-rc.1 | 69 | 5/12/2026 |