?? eventslog.cs
字號:
using System;
using System.Data;
using System.Collections;
using System.Diagnostics;
using System.ComponentModel;
using System.Configuration.Assemblies;
namespace HRManager.CommonComponent
{
/// <summary>
/// 類,事件日志類。
/// 單態(tài)封裝log4net
/// </summary>
public class myEventLog
{
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("File");
return log;
}
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -