using log4net;
using System;
using System.IO;
namespace WMS.Util
{
///
/// 描 述:log4net操作方法
///
public class LogFactory
{
///
/// 构造函数
///
static LogFactory()
{
log4net.Config.XmlConfigurator.Configure();
}
///
/// 获取日志操作对象
///
/// 类型
///
public static Log GetLogger(Type type)
{
return new Log(LogManager.GetLogger(type));
}
///
/// 获取日志操作对象
///
/// 名字
///
public static Log GetLogger(string str)
{
return new Log(LogManager.GetLogger(str));
}
}
}