Example #1
0
 /// <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());
     });
 }
Example #2
0
 /// <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
         });
     });
 }