/// <summary> /// Clear all the loggers and add only the Console logger to the /// the default logger. /// </summary> public static void Clear() { ExecuteWrite(() => { _loggers.Clear(); _loggers["default"] = new LogMulti("default", new LogConsole()); }); }
/// <summary> /// Initialize the default logger. /// </summary> /// <param name="logger"></param> public static void Init(ILogMulti logger) { ExecuteWrite(() => { if (_loggers == null) { _loggers = new DictionaryOrdered <string, ILogMulti>(); } _loggers["default"] = new LogMulti("default", new List <ILog>() { logger }); }); }