public ExecuteService(ILoggingService loggingService, IServiceProvider serviceProvider) { _loggingService = loggingService; _errorNotifier = new ExecuteLogProcessor(new LogProcessorOptions { LogLevel = LogLevel.Error, }); _serviceProvider = serviceProvider; }
public LoggingMockService(LogProcessorOptions options) { ExecuteLogProcessor = new ExecuteLogProcessor(options); //log var loggerFactory = LoggerFactory.Create(x => { x.SetMinimumLevel(ExecuteLogProcessor.LogLevel); x.AddZLoggerLogProcessor(ExecuteLogProcessor); }); _logger = loggerFactory.CreateLogger("mock"); }
public LoggingService(LogProcessorOptions options) { ExecuteLogProcessor = new ExecuteLogProcessor(options); }