Esempio n. 1
0
 /// <summary>
 /// 获取对象日志记录器
 /// </summary>
 /// <typeparam name="T">对象</typeparam>
 /// <returns></returns>
 public static ILog GetLogger <T>() where T : class
 {
     return(Log4netContext.GetLogger <T>());
 }
Esempio n. 2
0
 /// <summary>
 /// 获取对象日志记录器
 /// </summary>
 /// <param name="type">对象</param>
 /// <returns></returns>
 public static ILog GetLogger(Type type)
 {
     return(Log4netContext.GetLogger(type));
 }
Esempio n. 3
0
 /// <summary>
 /// 设置配置文件
 /// </summary>
 /// <param name="configuration"></param>
 /// <param name="configPath">配置文件路径</param>
 /// <returns></returns>
 public static void Configure(string configPath)
 {
     Log4netContext.Configure(configPath);
 }