Esempio n. 1
0
        public static ILoggerFactory AddMQTTLogger(this ILoggerFactory loggerFactory, Action <MQTTLoggerConfiguration> configure, IMQTTQueueService mqttService)
        {
            var config = new MQTTLoggerConfiguration();

            configure(config);
            return(loggerFactory.AddMQTTLogger(config, mqttService));
        }
Esempio n. 2
0
 public MQTTLogger(string name, IMQTTQueueService mqttService, MQTTLoggerConfiguration config)
 {
     _name        = name;
     _config      = config;
     _mqttService = mqttService;
 }
Esempio n. 3
0
 public static ILoggerFactory AddMQTTLogger(this ILoggerFactory loggerFactory, MQTTLoggerConfiguration config, IMQTTQueueService mqttService)
 {
     loggerFactory.AddProvider(new MQTTLoggerProvider(config, mqttService));
     return(loggerFactory);
 }
Esempio n. 4
0
 public MQTTLoggerProvider(MQTTLoggerConfiguration config, IMQTTQueueService mqttService)
 {
     _config      = config;
     _mqttService = mqttService;
 }