/// <summary>
/// 类,事件日志类。
/// 单态封装log4net
/// </summary>
public class EventLog
{
private static log4net.ILog log = null;
private static object lockHelper = new object();
public static log4net.ILog Log
{
get
{
if (log == null)
lock (lockHelper)
if (log == null)
log = log4net.LogManager.GetLogger("");
return log;
}
}
}