Пример #1
0
        public static Logger DefaultLogger()
        {
            var logger = new Logger();

            logger.Hooks.Add(new ConsoleOutputAdapter(LevelExtensions.GetLevels(Level.DebugLevel)));
            return(logger);
        }
Пример #2
0
 public LevelHooks()
 {
     _levelHooks = new Dictionary <Level, ConcurrentBag <IHook> >();
     foreach (var level in LevelExtensions.AllLevels())
     {
         _levelHooks[level] = new ConcurrentBag <IHook>();
     }
 }