Documentation
¶
Overview ¶
Package main demonstrates logging configuration in go-gnmi.
This example shows:
- Default behavior (no logging)
- Configuring log levels (Debug, Info, Warn, Error, None)
- Using WithLogger() and WithPrettyPrintLogs() options
- Automatic sensitive data redaction
Usage:
export GNMI_TARGET=192.168.1.1:57400 export GNMI_USERNAME=admin export GNMI_PASSWORD=secret go run main.go
Click to show internal directories.
Click to hide internal directories.