Expand description
Debug logging helpers.
This crate primarily prints user-facing progress messages to stdout. Any verbose diagnostics should be gated behind an environment variable and must never leak secrets (tokens, client secrets, etc.).
Enums§
- Debug
Level - Debug level for output control
Functions§
- enabled
- Returns true when debug logging is enabled.
- get_
debug_ level - Get the current debug level from environment variable or flags
- log
- Print a debug line to stderr when enabled.
- log_
api_ context - Print debug information for API call context
- log_
error_ code - Log Slack error code if present in response
- log_
trace - Print trace-level debug information
- redact_
json_ secrets - Redact token-like values from a JSON string.
- token_
hint - Returns a safe, non-reversible hint for a token.