public static void Init(LoggerBase mainLogger, LoggerBase logger, bool isDebug = true) { m_Logger = logger; List<LoggerBase> loggers = new List<LoggerBase>(); loggers.Add(logger); Init(mainLogger, loggers, isDebug); }
public static void Init(LoggerBase mainLogger, List<LoggerBase> loggers, bool isDebug = true) { List<IAppender> appenders = new List<IAppender>(); foreach (var logger in loggers) { appenders.Add(logger.GetAppender()); } m_Logger = mainLogger; m_IsDebug = isDebug; BasicConfigurator.Configure(appenders.ToArray()); }