debugflags

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 3 Imported by: 0

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

func Enabled(subsystem string) bool

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

func EnabledEnv(env string) bool

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.

Jump to

Keyboard shortcuts

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