示例#1
0
文件: Logger.cs 项目: jungrok5/BitBox
 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);
 }
示例#2
0
文件: Logger.cs 项目: jungrok5/BitBox
        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());
        }