veldtech / Miki.Logging

Logging library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Miki.Logging

Logging library.

Getting started

using Miki.Logging;

class MyLoggingExample 
{
    public static Main(string[] args)
    {
        // add a log provider
        Log.OnLog += Console.WriteLine;

        // set up colors :sparkles: 
        Log.Theme.SetColor(LogLevel.Error, new LogColor()
        {
            Foreground = ConsoleColor.Red,
            // optional, but to provide clarity.
            Background = null
        });

        // a multitude of log types
        Log.Message("This is a normal message!");
        Log.Error(new Exception());
    }
}

About

Logging library.

License:MIT License


Languages

Language:C# 100.0%