Ejemplo n.º 1
0
 public SimpleLogFactory(SimpleLogSettings settings, LogMessageActions actions)
 {
     this.ReportAdd();
     Settings   = settings;
     LogActions = actions;
     SimpleLogs = new ConcurrentDictionary <string, ISimpleLog>(StringComparer.OrdinalIgnoreCase);
 }
Ejemplo n.º 2
0
        public ISimpleLogFactory CreateFactory()
        {
            var simpleLogSettings = new SimpleLogSettings();

            simpleLogSettings.Default = new SimpleLogSetting()
            {
                Category = SimpleLogSettings.DefaultCategory, EnabledLevel = DefaultLevel
            };
            simpleLogSettings.SetEnabledLevel(FooCategory, FooLevel);
            return(new SimpleLogFactory(simpleLogSettings, new LogMessageActions()));
        }