Nalix.Logging
13.0.0
dotnet add package Nalix.Logging --version 13.0.0
NuGet\Install-Package Nalix.Logging -Version 13.0.0
<PackageReference Include="Nalix.Logging" Version="13.0.0" />
<PackageVersion Include="Nalix.Logging" Version="13.0.0" />
<PackageReference Include="Nalix.Logging" />
paket add Nalix.Logging --version 13.0.0
#r "nuget: Nalix.Logging, 13.0.0"
#:package Nalix.Logging@13.0.0
#addin nuget:?package=Nalix.Logging&version=13.0.0
#tool nuget:?package=Nalix.Logging&version=13.0.0
Nalix.Logging
Lightweight, high-performance asynchronous logging engine for local development in the Nalix ecosystem.
DEVELOPMENT AND TESTING ONLY This logging system is designed strictly for local debugging, profiling, and development environments. It is NOT intended or optimized for high-volume enterprise production environments. For production workloads, please switch to a robust logging framework such as Serilog, NLog, or use OpenTelemetry.
Key Features
| Feature | Description | Key Concept / Type |
|---|---|---|
| ⚡ NLogix Facade | Extensible C# logging facade implementing Microsoft's ILogger interface with Aggressive Inlining optimizations. |
NLogix, NLogix.Host |
| 📦 Asynchronous Sinks | High-efficiency channel-based distributor preventing logging operations from blocking hot code paths. | NLogixDistributor, INLogixTarget |
| 🔌 Batched Outputs | Native batched target execution writing console or local files in atomic, configured block increments. | BatchConsoleLogTarget, BatchFileLogTarget |
| 🎨 ANSI Formatting | Premium colorful console output engine with custom diagnostic level highlights and elapsed timestamps. | AnsiColorFormatter, FileLogFormatter |
Key Namespaces
| Namespace | Purpose | Key Types |
|---|---|---|
Nalix.Logging |
Core root namespace providing the main logging facade, global singleton host, and asynchronous channel distributor | NLogix, NLogix.Host, NLogixDistributor |
Nalix.Logging.Abstractions |
System contracts defining custom targets, data formatting, pipelines, and local error handlers | INLogixTarget, INLogixFormatter, INLogixDistributor, INLogixErrorHandler |
Nalix.Logging.Sinks |
Pre-built asynchronous, channel-backed targets writing log lines to consoles or local files | BatchConsoleLogTarget, BatchFileLogTarget |
Nalix.Logging.Formatters |
Output formatting engines generating colored ANSI shell strings or structured file entries | AnsiColorFormatter, FileLogFormatter |
Nalix.Logging.Options |
Configuration schemas defining minimum log level, files rotation, paths, and sink behaviors | NLogixOptions, ConsoleLogOptions, FileLogOptions |
Nalix.Logging.Extensions |
Fluent API extension methods adding level-specific logging calls (LogDebug, LogCritical) |
NLogixFx, NLogixFx.Level |
Nalix.Logging.Exceptions |
System error exceptions mapping filesystem and target write failures | FileError |
Installation
dotnet add package Nalix.Logging
Usage Examples
1. Global Singleton Usage (Quick Start)
The easiest way to use the logger in a development environment is via the global lazy-loaded NLogix.Host.Instance singleton.
using Microsoft.Extensions.Logging;
using Nalix.Logging;
// Retrieve the pre-configured global developer instance
ILogger logger = NLogix.Host.Instance;
logger.LogInformation("Nalix host application started in DEVELOPMENT mode.");
logger.LogWarning("System diagnostic: active connections count is nearing limit.");
2. Advanced Pipeline Configuration (Custom Sinks)
You can spin up an isolated NLogix logging engine with highly customized batching configurations and log rotation targets.
using System;
using Microsoft.Extensions.Logging;
using Nalix.Logging;
using Nalix.Logging.Options;
using Nalix.Logging.Sinks;
// Initialize a custom logging pipeline
using NLogix customLogger = new(options =>
{
// 1. Set the global minimum log severity level
options.SetMinimumLevel(LogLevel.Debug);
// 2. Add a customized console sink with ANSI color formatting
options.RegisterTarget(new BatchConsoleLogTarget());
// 3. Register a specialized file logger writing to "logs/dev.log"
options.RegisterTarget(new BatchFileLogTarget(fileOpts =>
{
fileOpts.FileName = "logs/dev.log";
fileOpts.Append = true;
fileOpts.AutoFlush = true;
fileOpts.MaxSizeBytes = 5 * 1024 * 1024; // 5 MB rotate limit
}));
});
// Write debug statements
customLogger.LogDebug("Custom asynchronous logging pipeline configured successfully.");
Documentation
See Nalix Logging API Reference for custom target sink implementation guides and formatter options.
| 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. |
-
net10.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.8)
- Nalix.Abstractions (>= 13.0.0)
- Nalix.Framework (>= 13.0.0)
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 |
|---|---|---|
| 13.0.0 | 185 | 6/6/2026 |
| 12.6.0 | 132 | 5/26/2026 |
| 12.5.1 | 129 | 5/24/2026 |
| 12.5.0 | 138 | 5/23/2026 |
| 12.4.1 | 130 | 5/17/2026 |
| 12.4.0 | 130 | 5/17/2026 |
| 12.3.0 | 132 | 5/15/2026 |
| 12.2.5 | 129 | 5/14/2026 |
| 12.2.4 | 134 | 5/8/2026 |
| 12.2.1 | 128 | 5/4/2026 |
| 12.2.0 | 128 | 5/4/2026 |
| 12.1.2 | 145 | 4/26/2026 |
| 12.1.1 | 135 | 4/25/2026 |
| 12.1.0 | 136 | 4/24/2026 |
| 12.0.9 | 128 | 4/19/2026 |
| 12.0.8 | 149 | 4/16/2026 |
| 12.0.7 | 144 | 4/10/2026 |
| 12.0.6 | 141 | 4/10/2026 |
| 12.0.5 | 137 | 4/9/2026 |
| 12.0.4 | 134 | 4/6/2026 |
- Development Only: Explicitly marked as a development-only tool. Do NOT use in production environments.
- Asynchronous Performance: Basic channel-based logging engine designed for non-blocking local execution.
- Simple Targets: Built-in sinks including basic file I/O and console output for debugging purposes.
- Unified Facade: Provides simple NLogix access points for development-phase logging.