Beispiel #1
0
        public static void Log(string text, LogLevel level)
        {
            if (Configuration?.Current.LogLevel <= level)
            {
                switch (level)
                {
                case LogLevel.Debug: ModApi?.Log(text);        break;

                case LogLevel.Message: ModApi?.Log(text);        break;

                case LogLevel.Error: ModApi?.LogError(text);   break;

                default: ModApi?.Log(text);        break;
                }
            }
        }