AdamK2003_VTOLVR-ModLoader/Core/Logger.cs
using System;

namespace Core
{
    public static class Logger
    {
        public enum LogType { Log, Warning, Error }

        public static Action<object, LogType> OnMessageLogged;

        public static void Log(object message)
        {
            OnMessageLogged?.Invoke(message, LogType.Log);
        }

        public static void Warning(object message)
        {
            OnMessageLogged?.Invoke(message, LogType.Warning);
        }

        public static void Error(object message)
        {
            OnMessageLogged?.Invoke(message, LogType.Error);
        }
    }
}