예제 #1
0
 /// <summary>
 /// 创建日志存储对象(成员,当前程序目录)。
 /// </summary>
 /// <param name="memberInfo"></param>
 /// <returns></returns>
 public static ILog Console(this System.Reflection.MemberInfo memberInfo)
 {
     return(new ConsoleLog(LogBase.GetName(memberInfo)));
 }
예제 #2
0
 /// <summary>
 /// 创建日志存储对象(类型,当前程序目录)。
 /// </summary>
 /// <param name="type"></param>
 /// <returns></returns>
 public static ILog Console(this System.Type type)
 {
     return(new ConsoleLog(LogBase.GetName(type)));
 }