예제 #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));
        }
예제 #2
0
 public MQTTLogger(string name, IMQTTQueueService mqttService, MQTTLoggerConfiguration config)
 {
     _name        = name;
     _config      = config;
     _mqttService = mqttService;
 }
예제 #3
0
 public static ILoggerFactory AddMQTTLogger(this ILoggerFactory loggerFactory, MQTTLoggerConfiguration config, IMQTTQueueService mqttService)
 {
     loggerFactory.AddProvider(new MQTTLoggerProvider(config, mqttService));
     return(loggerFactory);
 }
예제 #4
0
 public MQTTLoggerProvider(MQTTLoggerConfiguration config, IMQTTQueueService mqttService)
 {
     _config      = config;
     _mqttService = mqttService;
 }