Skip to main content

Module logging

Module logging 

Source
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_LOG or RUST_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 run

Structs§

LogConfig
Logging configuration

Enums§

LogFormat
Log output format

Functions§

init
Initialize the global tracing subscriber.
init_from_env
Initialize logging with environment-based configuration.