19 lines
355 B
Go
19 lines
355 B
Go
package mqtt_consumer
|
|
|
|
import (
|
|
"github.com/influxdata/telegraf"
|
|
)
|
|
|
|
type mqttLogger struct {
|
|
telegraf.Logger
|
|
}
|
|
|
|
// Printf implements mqtt.Logger
|
|
func (l mqttLogger) Printf(fmt string, args ...interface{}) {
|
|
l.Logger.Debugf(fmt, args...)
|
|
}
|
|
|
|
// Println implements mqtt.Logger
|
|
func (l mqttLogger) Println(args ...interface{}) {
|
|
l.Logger.Debug(args...)
|
|
}
|