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