Beispiel #1
0
        private void WriteToDebugLog(string message, LogMessageErrorLevel errorLevel = LogMessageErrorLevel.Info)
        {
            switch (errorLevel)
            {
            case LogMessageErrorLevel.Error: message = $"ERROR: {message}"; break;

            case LogMessageErrorLevel.Warning: message = $"WARNING: {message}"; break;
            }

            LogWriter.WriteLine(message);
            Console.WriteLine(message);
        }
Beispiel #2
0
 internal static void PrintToLog(string message, LogMessageErrorLevel errorLevel = LogMessageErrorLevel.Info)
 {
     OnMessageLogged?.Invoke(message, errorLevel);
 }