Пример #1
0
 private static IMyLog[] WrapLoggers(ILogger[] loggers)
 {
     IMyLog[] results = new IMyLog[loggers.Length];
     for (int i = 0; i < loggers.Length; i++)
     {
         results[i] = MyLogManager.WrapLogger(loggers[i]);
     }
     return(results);
 }
Пример #2
0
 public static IMyLog GetLogger(Assembly assembly, Type type)
 {
     return(MyLogManager.WrapLogger(LoggerManager.GetLogger(assembly, type)));
 }
Пример #3
0
 public static IMyLog GetLogger(Type type)
 {
     return(MyLogManager.GetLogger(Assembly.GetCallingAssembly(), type.FullName));
 }
Пример #4
0
 public static IMyLog GetLogger(string domain, Type type)
 {
     return(MyLogManager.WrapLogger(LoggerManager.GetLogger(domain, type)));
 }
Пример #5
0
 public static IMyLog GetLogger(string domain, string name)
 {
     return(MyLogManager.WrapLogger(LoggerManager.GetLogger(domain, name)));
 }
Пример #6
0
 public static IMyLog GetLogger(Assembly assembly, string name)
 {
     return(MyLogManager.WrapLogger(LoggerManager.GetLogger(assembly, name)));
 }
Пример #7
0
 public static IMyLog[] GetCurrentLoggers(Assembly assembly)
 {
     return(MyLogManager.WrapLoggers(LoggerManager.GetCurrentLoggers(assembly)));
 }
Пример #8
0
 public static IMyLog GetLogger(string name)
 {
     return(MyLogManager.GetLogger(Assembly.GetCallingAssembly(), name));
 }
Пример #9
0
 public static IMyLog[] GetCurrentLoggers(string domain)
 {
     return(MyLogManager.WrapLoggers(LoggerManager.GetCurrentLoggers(domain)));
 }
Пример #10
0
 public static IMyLog[] GetCurrentLoggers()
 {
     return(MyLogManager.GetCurrentLoggers(Assembly.GetCallingAssembly()));
 }
Пример #11
0
 public static IMyLog Exists(Assembly assembly, string name)
 {
     return(MyLogManager.WrapLogger(LoggerManager.Exists(assembly, name)));
 }
Пример #12
0
 public static IMyLog Exists(string domain, string name)
 {
     return(MyLogManager.WrapLogger(LoggerManager.Exists(domain, name)));
 }
Пример #13
0
 public static IMyLog Exists(string name)
 {
     return(MyLogManager.Exists(Assembly.GetCallingAssembly(), name));
 }