Exemplo n.º 1
0
        internal static void Error(Exception exp)
        {
            string error = "System: " + PCINFO.GetOperatingSystem() + (Environment.Is64BitOperatingSystem ? " x64" : string.Empty) + Environment.NewLine;

            error += "PlusFTP: " + VersionHelper.AppVersion + Environment.NewLine;
            error  = error + formatException(exp);

            FileHelper.WriteAll(DirectoryHelper.CurrentDirectory + @"\Error-" +
                                DateFormatHelper.GetShortDateTimeSafe() + ".txt", error);
        }
Exemplo n.º 2
0
 internal static void Log(Exception exp)
 {
     FileHelper.AppendText(DirectoryHelper.CurrentDirectory + @"\Exceptions.txt",
                           DateFormatHelper.GetShortDateTime() + Environment.NewLine + formatException(exp) + Environment.NewLine);
 }