Beispiel #1
0
 public static ILog GetLogger(Type t)
 {
     if (!RegisteredLogs.ContainsKey(t)) {
         RegisteredLogs[t] = new LogWrapper(Assembly.GetCallingAssembly(), t);
         if (RealLogProvider!=null)
             RegisteredLogs[t].RealLog = RealLogProvider.Provide(RegisteredLogs[t]);
     }
     return RegisteredLogs[t];
 }
Beispiel #2
0
 public static ILog GetLogger(Type t)
 {
     if (!RegisteredLogs.ContainsKey(t))
     {
         RegisteredLogs[t] = new LogWrapper(Assembly.GetCallingAssembly(), t);
         if (RealLogProvider != null)
         {
             RegisteredLogs[t].RealLog = RealLogProvider.Provide(RegisteredLogs[t]);
         }
     }
     return(RegisteredLogs[t]);
 }
Beispiel #3
0
 public ILog GetLog(LogWrapper context)
 {
     return(new TraceLog(this, context.ForType.FullName));
 }