c# log类

来源:互联网 发布:电脑无法登陆淘宝网 编辑:程序博客网 时间:2024/06/12 21:28

将log日志输出到指定地点

public static void MyLog(string logPath, string logInformation){    StreamWriter log = new StreamWriter(logPath, true);    log.WriteLine(logInformation);    log.Close();}
0 0
原创粉丝点击