BattlelogMobile.Log.EmailLogProvider.Log C# (CSharp) Method

Log() public static method

public static Log ( Exception exception ) : void
exception System.Exception
return void
        public static void Log(Exception exception)
        {
            using (TextWriter writer = new StreamWriter(Store.OpenFile(Filename, FileMode.Create)))
            {
                writer.WriteLine("Date: {0}", DateTime.Now);
                writer.WriteLine(string.Empty);
                writer.WriteLine("Exception: {0}", exception);
            }
        }
EmailLogProvider