ColorLogger_NET 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package ColorLogger_NET --version 1.0.2                
NuGet\Install-Package ColorLogger_NET -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="ColorLogger_NET" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ColorLogger_NET --version 1.0.2                
#r "nuget: ColorLogger_NET, 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.
// Install ColorLogger_NET as a Cake Addin
#addin nuget:?package=ColorLogger_NET&version=1.0.2

// Install ColorLogger_NET as a Cake Tool
#tool nuget:?package=ColorLogger_NET&version=1.0.2                

Color Logger for .NET.

NuGet Version NuGet Downloads License

Print colored logs on terminal for .NET.

Features

  • Prints different log types with different colors.
  • Log Types:
    • Verbose
    • Info
    • Debug
    • Warning
    • Error
    • Unknown

Usage

ColorLogger logger = new ColorLogger();
logger.Print("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", LogLevel.debug);
logger.Print("hello world !", LogLevel.verbose);
logger.Print("love dotnet :)", LogLevel.info);
logger.Print("hey check that!", LogLevel.warning);
logger.Print("please use c# !", LogLevel.error);
logger.Print("dotnet rocks !", LogLevel.unknown);

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ColorLogger_NET:

Package Downloads
TCIDChecker_NET

Determines that given TC ID is correct or wrong based on rules for .NET.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 609 2/21/2022
1.0.2 420 2/21/2022
1.0.1 657 2/20/2022
1.0.0 421 2/18/2022

*  In default, internal console do not support window width. Now, algorithm convert output target to console from terminal automatically with a simple try-catch block if window width undefined or equal to zero(internal console returns it).