using log4net;
using System.IO;
namespace EC.Utils
{
///
/// LogFactory
/// 版 本:V3.0.0
/// 版 权:EasyCode
/// 作 者:LXC
///
public class LogFactory
{
///
/// 构造函数
///
static LogFactory()
{
var repository = LogManager.CreateRepository("ExceptionEx");
log4net.Config.XmlConfigurator.Configure(repository, new FileInfo("log4.config"));
}
///
/// 获取日志操作对象
///
///
public static Log GetLogger()
{
return new Log(LogManager.GetLogger("ExceptionEx", ""));
}
}
}