/// <summary> /// Debugs the specified message. /// </summary> /// <param name="message">The message.</param> public static void Debug(string message) { message = FormatorHelper.InfoLog($"Debug: {message}"); WriteToFile(InfoPath, message); System.Diagnostics.Debug.WriteLine(message); }
/// <summary> /// Errors the specified message. /// </summary> /// <param name="message">The message.</param> /// <param name="exception">The exception.</param> public static void Error(string message, Exception exception) { message = FormatorHelper.ExceptionLog($"Error: {message}", exception); WriteToFile(ErrorPath, message); Console.WriteLine(message); }
//private static List<string> messages = new List<string>(); /// <summary> /// Informations the specified message. /// </summary> /// <param name="message">The message.</param> public static void Info(string message) { message = FormatorHelper.InfoLog($"Info: {Thread.CurrentThread.ManagedThreadId.ToString()} {message}"); WriteToFile(InfoPath, message); Console.WriteLine(message); }