Class MQTTLoggerConfigurationExtensions
Inheritance
System.Object
MQTTLoggerConfigurationExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Serilog.Sinks
Assembly: Serilog.Sinks.MQTT.dll
Syntax
public static class MQTTLoggerConfigurationExtensions
Methods
| Improve this Doc View SourceMQTT(LoggerSinkConfiguration, IMqttClientOptions, String, MqttQualityOfServiceLevel, LogEventLevel, ITextFormatter)
Creates logger configuration for MQTT.
Declaration
public static LoggerConfiguration MQTT(this LoggerSinkConfiguration sinkConfiguration, IMqttClientOptions clientOptions, string topic, MqttQualityOfServiceLevel qoS = MqttQualityOfServiceLevel.AtMostOnce, LogEventLevel restrictedToMinimumLevel = LogEventLevel.Information, ITextFormatter formatter = null)
Parameters
Type | Name | Description |
---|---|---|
Serilog.Configuration.LoggerSinkConfiguration | sinkConfiguration | Sink configuration |
MQTTnet.Client.Options.IMqttClientOptions | clientOptions | MQTT client options |
System.String | topic | MQTT topic under which the logs are to be published. |
MQTTnet.Protocol.MqttQualityOfServiceLevel | qoS | Quality of service level. MQTTnet.Protocol.MqttQualityOfServiceLevel |
Serilog.Events.LogEventLevel | restrictedToMinimumLevel | Restricted min level. |
Serilog.Formatting.ITextFormatter | formatter | Custom formatter. |
Returns
Type | Description |
---|---|
Serilog.LoggerConfiguration |