Documentation
¶
Overview ¶
Package debugflags implements the uniform clai debug-flag scheme.
Every feature-scoped debug switch follows the same rules: plain DEBUG=1 enables all subsystems, DEBUG_<SUBSYSTEM>=1 enables a single subsystem.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Enabled ¶
Enabled reports whether verbose diagnostics are active for a subsystem. It returns true when DEBUG is truthy, or when DEBUG_<SUBSYSTEM> is truthy (case-insensitive).
func EnabledEnv ¶
EnabledEnv applies the global DEBUG switch and a caller-provided compatibility environment variable, such as OPENAI_DEBUG.
func OutputFile ¶
func OutputFile() string
OutputFile returns the optional path used for debug output.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.