package
0.0.0-20210329234232-2eeca3e37d20
Repository: https://github.com/intel-hpdd/logging.git
Documentation: pkg.go.dev
# README
debug - Old school debugging with logging
Proposed package for debugging aids. See examples for some trivial samples.
# Packages
No description provided by the author
# Functions
Assert will panic if expression is not true, but only if debugging is enabled.
Assertf will panic if expression is not true, but only if debugging is enabled.
Disable disables debug logging.
Enable enables debug logging.
Enabled returns a bool indicating whether or not debugging is enabled.
FlagVar returns a tuple of parameters suitable for flag.Var().
NewDebugger creates a new *Debugger which logs to the supplied io.Writer.
Output prints message if debug logging is enabled.
Print prints arguments if debug logging is enabled.
Printf prints message if debug logging is enabled.
SetOutput configures the output writer for the wrapped *log.Logger.
Shell runs command only in debug mode.
Writer returns a new *external.Writer suitable for injection into 3rd-party logging packages.
# Constants
EnableEnvVar is the name of an environment variable that, if set, will enable this package's functionality.
# Type aliases
No description provided by the author