CS.Logger 2.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package CS.Logger --version 2.3.0
                    
NuGet\Install-Package CS.Logger -Version 2.3.0
                    
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="CS.Logger" Version="2.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CS.Logger" Version="2.3.0" />
                    
Directory.Packages.props
<PackageReference Include="CS.Logger" />
                    
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 CS.Logger --version 2.3.0
                    
#r "nuget: CS.Logger, 2.3.0"
                    
#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 CS.Logger@2.3.0
                    
#: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=CS.Logger&version=2.3.0
                    
Install as a Cake Addin
#tool nuget:?package=CS.Logger&version=2.3.0
                    
Install as a Cake Tool

Logger

LICENSE APP_VER DOT_NET_CORE DOT_NET_CORE DOT_NET_FRAMEWORK OS

Logger library for C#.

What?

The library "logger.dll" is a library to output log message, informaiton into console and/or file in C# applications.

How to use

To use this library, clone the repository and add reference to the file Logger.dll in the cloned into your project. And then, setup logger in your codes called when starts.

Sample codes:

using CS.Logger;

CS.Logger.ALog consoleLogger = new CS.Logger.Console.Log();
CS.Logger.Log.AddLogger(consoleLogger);

CS.Logger.Log.TRACE("Sample TRACE level log message");
CS.Logger.Log.DEBUG("Sample DEBUG level log message");
CS.Logger.Log.INFO("Sample INFO(rmation) level log message");
CS.Logger.Log.WARN("Sample WARN(ing) level log message");
CS.Logger.Log.ERROR("Sample ERROR level log message");
CS.Logger.Log.FATAL("Sample FATAL level log message");

Codes Log.Addogger is a method the logger.dll provides, Logger.Console.Log, and Logger.File.Log are class to output log message into console and file.
The codes above output message into console like below:

sample_screen_shotpng

And the same message will be output into a file like below: sample_log_file.log File name is yyyyMMddHHmmss format. It can change. The way to change, see wiki pages.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.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
2.3.1 113 4/3/2026
2.3.0 114 4/3/2026
2.2.2 686 4/29/2025
2.1.0 631 3/28/2025
2.0.0.2 1,360 3/26/2025