C# 打日志

1 //写日志,测试
2         private void WriteLog(string content)
3         {
4             StreamWriter log = new StreamWriter("c:\\ceshi.txt", true);
5 
6             log.WriteLine(content);
7 
8             log.Close(); 
9         }

 

posted on 2015-01-09 08:16  aoun  阅读(190)  评论(0)    收藏  举报