Esempio n. 1
0
 public ExecuteService(ILoggingService loggingService, IServiceProvider serviceProvider)
 {
     _loggingService = loggingService;
     _errorNotifier  = new ExecuteLogProcessor(new LogProcessorOptions
     {
         LogLevel = LogLevel.Error,
     });
     _serviceProvider = serviceProvider;
 }
Esempio n. 2
0
        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");
        }
Esempio n. 3
0
 public LoggingService(LogProcessorOptions options)
 {
     ExecuteLogProcessor = new ExecuteLogProcessor(options);
 }