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; }
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); }