コード例 #1
0
 /// <summary>
 /// Get logger from name and type.
 /// </summary>
 /// <param name="name"></param>
 /// <param name="type"></param>
 /// <returns></returns>
 public static ILog GetLogger(string name, Type type)
 {
     return(WrapLogger(LoggerDirector.GetLogger(name, type.FullName)));
 }
コード例 #2
0
 /// <summary>
 /// Get logger from type.
 /// </summary>
 /// <param name="type"></param>
 /// <returns></returns>
 public static ILog GetLogger(Type type)
 {
     return(WrapLogger(LoggerDirector.GetLogger(Assembly.GetCallingAssembly(), type.FullName)));
 }
コード例 #3
0
 /// <summary>
 /// Get logger from assembly and name.
 /// </summary>
 /// <param name="assembly"></param>
 /// <param name="name"></param>
 /// <returns></returns>
 public static ILog GetLogger(Assembly assembly, string name)
 {
     return(WrapLogger(LoggerDirector.GetLogger(assembly, name)));
 }