ColoredLogger 1.0.2

dotnet add package ColoredLogger --version 1.0.2
                    
NuGet\Install-Package ColoredLogger -Version 1.0.2
                    
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="ColoredLogger" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ColoredLogger" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="ColoredLogger" />
                    
Project file
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 ColoredLogger --version 1.0.2
                    
#r "nuget: ColoredLogger, 1.0.2"
                    
#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 ColoredLogger@1.0.2
                    
#: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=ColoredLogger&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=ColoredLogger&version=1.0.2
                    
Install as a Cake Tool

ColoredLogger 🎨

A lightweight, high-visibility logging library for .NET applications. ColoredLogger provides a set of fluent string extension methods to transform boring console output into structured, professional, and color-coded logs with zero configuration.

🚀 Installation

Install the package via the NuGet CLI:

dotnet add package ColoredLogger

🛠 Usage

Simply add using ColoredLogger; to your class. The library extends the string type, allowing you to trigger logs directly from your message strings.

1. Semantic Logging

Standardized methods for common application states. Each method handles the prefixing and coloring automatically.

"Server started on port 8080.".LogSuccess();
"Checking for updates...".LogInfo();
"Disk space is below 10%.".LogWarning();
"User authentication failed.".LogError();

Terminal Output:

✅ [SUCCESS] Server started on port 8080.
â„šī¸ [INFO]    Checking for updates...
âš ī¸ [!]       Disk space is below 10%.
❌ [ERROR]   User authentication failed.

2. Section Banners

LogBanner creates a centered, bordered header. It automatically detects your console's width to ensure the border spans the full window.

"DATABASE MIGRATION".LogBanner('=');

Terminal Output:

================================================================================
                              DATABASE MIGRATION
================================================================================

3. Basic & Custom Logging

Use .Log() for standard output without prefixes. You can optionally pass any ConsoleColor.

"Initialising modules...".Log();
"Processing background task...".Log(ConsoleColor.Cyan);

Terminal Output:

🔘 Initialising modules...
🔹 Processing background task...

📋 Full Integration Example

Perfect for startup sequences or CLI tools:

using ColoredLogger;

"APP STARTUP".LogBanner('=');
"Loading environment variables...".Log();
"API Keys validated.".LogSuccess();
"Connecting to Database...".LogInfo();
"Connection timeout. Retrying (1/3)...".LogWarning();
"Critical Error: Could not connect to DB.".LogError();
"PROCESS TERMINATED".LogBanner('-');

Visual Preview:

================================================================================
                                   APP STARTUP
================================================================================
âš™ī¸ Loading environment variables...
✅ [SUCCESS] API Keys validated.
â„šī¸ [INFO]   Connecting to Database...
âš ī¸ [!]      Connection timeout. Retrying (1/3)...
❌ [ERROR]  Critical Error: Could not connect to DB.
--------------------------------------------------------------------------------
                               PROCESS TERMINATED
--------------------------------------------------------------------------------

âš–ī¸ License

This project is licensed under the MIT License.

Product 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

    • No dependencies.

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
1.0.2 93 5/1/2026
1.0.1 85 5/1/2026
1.0.0 97 5/1/2026