摘要:
本文的主要内容:利用Directory、Path、StreamWriter实现对错误记载的一个简单方法。如果在多线程中,还需要加锁,来保证同步。本代码没有考虑同步的部分。Log.cs 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 using System.IO; 7 namespace y.LogExample 8 { 9 class Log10 {11 ///<summary>12 /// 记载错误日志13 ///</summ 阅读全文
posted @ 2011-08-22 10:52
走过留痕
阅读(261)
评论(0)
推荐(0)