public static Logger DefaultLogger() { var logger = new Logger(); logger.Hooks.Add(new ConsoleOutputAdapter(LevelExtensions.GetLevels(Level.DebugLevel))); return(logger); }
public LevelHooks() { _levelHooks = new Dictionary <Level, ConcurrentBag <IHook> >(); foreach (var level in LevelExtensions.AllLevels()) { _levelHooks[level] = new ConcurrentBag <IHook>(); } }