Shared.Logger.WriteToLogFile C# (CSharp) Method

WriteToLogFile() public static method

Writes a message from a source to the logfile in the output folder.
public static WriteToLogFile ( Exception e ) : void
e System.Exception
return void
        public static void WriteToLogFile(Exception e)
        {
            try
            {
                using (var w = File.AppendText(GetLogPath()))
                {
                    Log(e, w);
                }
            } catch (Exception) {
                //could not log, problems with the log file
                WriteToConsole("Error while logging, msg: " + e.Message);
            }
        }