Skip to main content

Module logging

Module logging 

Source
Expand description

Logging and verbosity control

Provides global flags for controlling output verbosity and formatting:

  • –no-color: Disable ANSI colors
  • –quiet: Print only result payload
  • –verbose: Show request summaries
  • –debug: Include full trace (redacts secrets)

Functions§

debug
Check if debug mode is enabled
flush
Flush background logs by dropping the WorkerGuard
init
Initialize logging flags and tracing
no_color
Check if colors should be disabled
quiet
Check if quiet mode is enabled
redact_secrets
Redact secrets from debug output
verbose
Check if verbose mode is enabled