コード例 #1
0
        /// <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);
        }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
        //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);
        }