public static ILoggerFactory AddMQTTLogger(this ILoggerFactory loggerFactory, Action <MQTTLoggerConfiguration> configure, IMQTTQueueService mqttService) { var config = new MQTTLoggerConfiguration(); configure(config); return(loggerFactory.AddMQTTLogger(config, mqttService)); }
public MQTTLogger(string name, IMQTTQueueService mqttService, MQTTLoggerConfiguration config) { _name = name; _config = config; _mqttService = mqttService; }
public static ILoggerFactory AddMQTTLogger(this ILoggerFactory loggerFactory, MQTTLoggerConfiguration config, IMQTTQueueService mqttService) { loggerFactory.AddProvider(new MQTTLoggerProvider(config, mqttService)); return(loggerFactory); }
public MQTTLoggerProvider(MQTTLoggerConfiguration config, IMQTTQueueService mqttService) { _config = config; _mqttService = mqttService; }