Mqtt Logger
interface MqttLogger
Logging interface for MQTTastic library consumers.
Implement this interface to receive log output from the MQTT client. Configure it via MqttConfig.logger along with MqttConfig.logLevel.
Example
val config = MqttConfig(
clientId = "my-client",
logger = MqttLogger.println(),
logLevel = MqttLogLevel.DEBUG,
)Content copied to clipboard