Skip to content

ruedoux/logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Logging

Lightweight logging library for C#.

Features

  • Lightweight and easy to integrate
  • Minimal overhead
  • Zero dependencies

Installation

  • Download or clone the repository.
  • Add a reference to .csproj in your main project.

Usage

Action<Message>[] outputMethods = [(msg) => Console.WriteLine(msg)];
LogSettings logSettings = new() { AnsiColors = true, Debug = true };
Logger logger = new(outputMethods, logSettings);

logger.Log("Test info");
logger.LogWarning("Test warn");
logger.LogError("Test error");
logger.LogDebug("Test debug");

example output (colored in console):

15:43:59.769  INFO [         Program] : Test info
15:43:59.796  WARN [         Program] : Test warn
15:43:59.796 ERROR [         Program] : Test error
15:43:59.796 DEBUG [         Program] : Test debug

About

Lightweight logging library for C#.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages