debug

package
v0.10.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 10 Imported by: 0

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 DebugBeforeCommand(rootCmd *cobra.Command) error

func DebugSetupCLI

func DebugSetupCLI(rootCmd *cobra.Command)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL