Documentation ¶
Overview ¶
Package debug implements the “--debug” and “--debug-file” CLI args.
In addition to these CLI args, debug logging to a file can also be enabled by setting the “CSHARK_LOG” environment variable to the name and path of a log file to be written to.
Index ¶
Constants ¶
View Source
const EnvLogFile = "CSHARK_LOG"
EnvLogFile is the name of an environment variable specifying the filename (and path) of a log file. If the file doesn't exist, it will be created. Passing this environment variable to our extcap plugin works like --debug-file (which also implies --debug).
Variables ¶
This section is empty.
Functions ¶
func DebugBeforeCommand ¶
func DebugSetupCLI ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.