namespace InABox.Core
{
    public enum LogType
    {
        Information,
        Query,
        Update,
        Error,
        /// <summary>
        /// This log is an important notice that the system administrator should not ignore.
        /// </summary>
        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);
        }
    }
}