Expand description
Structured logging configuration for RustyClaw.
Uses tracing with tracing-subscriber for configurable log levels
and structured output. Supports JSON output for production environments.
§Environment Variables
RUSTYCLAW_LOGorRUST_LOG: Set log level (e.g.,debug,rustyclaw=debug,hyper=warn)RUSTYCLAW_LOG_FORMAT: Set output format (pretty,compact,json)
§Examples
# Debug logging for RustyClaw, warn for everything else
RUSTYCLAW_LOG=rustyclaw=debug,warn rustyclaw gateway run
# JSON output for production
RUSTYCLAW_LOG_FORMAT=json rustyclaw gateway runStructs§
- LogConfig
- Logging configuration
Enums§
- LogFormat
- Log output format
Functions§
- init
- Initialize the global tracing subscriber.
- init_
from_ env - Initialize logging with environment-based configuration.