文件名称:C# 日志代码 不错的代码很通用
文件大小:2KB
文件格式:CS
更新时间:2013-10-15 07:54:25
C# 日志
/* 用于单例 */ private static volatile Loger _instance = null; private static object _syncRoot = new Object(); private string LogFile = "Syn.log"; private StreamWriter LogWrite = null; public static Loger Instance { get { if (_instance == null) { lock (_syncRoot) { if (_instance == null) _instance = new Loger(); } } return _instance; } }