Пример #1
0
 private ConsoleSM(ConsoleStore config)
 {
     Config = config;
     ProcessingQueueSize           = 100_000;
     ProcessingQueue               = new BlockingCollection <LogData>(ProcessingQueueSize);
     AccessAttemptsDelays_mSeconds = new int[] { 1, 3, 6, 10, 15, 25, 30, 40 };
     Logger      = LoggersFactory.GetLogger <ConsoleSM>(true);
     MinLogLevel = config.minLogLevel;
 }
Пример #2
0
 internal static ConsoleSM Init(ConsoleStore config)
 {
     if (config is null)
     {
         throw new StruLogConfigException($"Not found configuration for '{NAME}' store");
     }
     if (@this == null)
     {
         @this = new ConsoleSM(config);
     }
     return(@this);
 }