using log4net; using System; namespace Learun.Loger { /// /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 /// Copyright (c) 2013-2018 北京泉江科技有限公司 /// 创建人:陈彬彬 /// 日 期:2017.03.04 /// 描 述:redis操作方法 /// 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)); } } }