Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
15
plugins/common/opcua/logger.go
Normal file
15
plugins/common/opcua/logger.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
package opcua
|
||||
|
||||
import (
|
||||
"github.com/influxdata/telegraf"
|
||||
)
|
||||
|
||||
// DebugLogger logs messages from opcua at the debug level.
|
||||
type DebugLogger struct {
|
||||
Log telegraf.Logger
|
||||
}
|
||||
|
||||
func (l *DebugLogger) Write(p []byte) (n int, err error) {
|
||||
l.Log.Debug(string(p))
|
||||
return len(p), nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue