Example #1
0
 /// <summary>
 /// 获取对象日志记录器
 /// </summary>
 /// <param name="type">对象</param>
 /// <returns></returns>
 public static ILog GetLogger(Type type)
 {
     return(Log4netContext.GetLogger(type));
 }
Example #2
0
 /// <summary>
 /// 获取对象日志记录器
 /// </summary>
 /// <typeparam name="T">对象</typeparam>
 /// <returns></returns>
 public static ILog GetLogger <T>() where T : class
 {
     return(Log4netContext.GetLogger <T>());
 }