コード例 #1
0
 public static ILogger Logger(this object it)
 {
     if (it == null)
     {
         return(NullLogger.nullLogger);
     }
     return(LogManagerRegistry.GetInstance().RetriveLoggerByType(it.GetType()));
 }
コード例 #2
0
 public static ILogger Logger(this Type type)
 {
     return(LogManagerRegistry.GetInstance().RetriveLoggerByType(type));
 }
コード例 #3
0
 public static ILogger LoggerNamed(this object it, string name)
 {
     return(LogManagerRegistry.GetInstance().RetriveLoggerByName(name));
 }
コード例 #4
0
 public static ILogger Logger <T>()
 {
     return(LogManagerRegistry.GetInstance().RetriveLoggerByType(typeof(T)));
 }