namespace InABox.Core { public enum LogType { Information, Query, Update, Error, /// /// This log is an important notice that the system administrator should not ignore. /// Important } public delegate void LogFunction(LogType type, string userid, string message); public static class Logger { public static event LogFunction OnLog; public static void Send(LogType logtype, string userid, string message) { OnLog?.Invoke(logtype, userid, message); } } }