AxibugRedirector/AxibugInject/Filelog.cs
2023-09-22 17:17:54 +08:00

24 lines
616 B
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ClassLibrary1
{
public class FileLog
{
public static string logpath = System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\\AxibugRedirectorLog.txt";
public static void Log(string sourceStr)
{
try
{
File.AppendAllText(logpath, "\n"+DateTime.Now.ToString("yyyyMMdd HH:mm:ss: ") + sourceStr);
}
catch { }
}
}
}