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