Documentation ¶
Overview ¶
Package debug provides functions for debug logging.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Enable bool = FlagSet("debug")
Enable controls whether debug logging is enabled. It is disabled by default.
View Source
var Flags = os.Getenv("OPC_DEBUG")
Flags contains the debug flags set by OPC_DEBUG.
- codec : print detailed debugging information when encoding/decoding
View Source
var Logger = log.New(os.Stderr, "debug: ", 0)
Logger logs the debug messages when debug logging is enabled.
Functions ¶
func FlagSet ¶
FlagSet returns true if the OPCUA_DEBUG environment variable contains the given flag.
func NewPrefixLogger ¶
PrefixLogger returns a new debug logger when debug logging is enabled. Otherwise, a discarding logger is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.