Пример #1
0
 static void Log(string txt, LogType type, Exception e = null, Dictionary <string, string> extraData = null)
 {
     for (int i = 0; i < _loggers.Count; i++)
     {
         _loggers[i].Log(txt, type, e, extraData);
     }
 }
Пример #2
0
 static void Log(string txt, LogType type, Exception e = null, Dictionary <string, string> extraData = null)
 {
     for (int i = 0; i < _loggers.Count; i++)
     {
         if (_loggers[i].IsValid == true)
         {
             _loggers[i].Target.Log(txt, type, e, extraData);
         }
         else
         {
             _loggers.UnorderedRemoveAt(i);
             i--;
         }
     }
 }