写日志
public static class DebugHelper
{
private const string LOG_PATH = @"e:\";
private const string LOG_NAME = "stanLog.txt";
public static void WriteLog(this string input)
{
string filePath = Path.Combine(LOG_PATH + LOG_NAME);
FileStream fs = new FileStream(filePath, FileMode.Append);
StreamWriter sw = new StreamWriter(fs, Encoding.Default);
sw.WriteLine(input);
sw.Close();
fs.Close();
}
}