Lightweight logging library for C#.
- Lightweight and easy to integrate
- Minimal overhead
- Zero dependencies
- Download or clone the repository.
- Add a reference to
.csprojin your main project.
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