pub struct LogConfig {
pub category: String,
pub level: LogLevel,
pub show_headers: bool,
pub show_body: bool,
pub max_chars: Option<usize>,
pub log_mask: bool,
pub show_stream_info: bool,
pub group_size: Option<usize>,
}Expand description
Configuration parsed from a log URI.
Format: log:category?level=info&showHeaders=true&showBody=true&logMask=false&showStreamInfo=false&groupSize=10
Fields§
§category: StringLog category (the path portion of the URI).
level: LogLevelLog level. Default: Info.
show_headers: boolWhether to include headers in the log output.
show_body: boolWhether to include the body in the log output.
max_chars: Option<usize>Maximum number of characters for the body in log output.
Bodies longer than this are truncated. None means no limit.
log_mask: boolWhen true, redact sensitive headers and body in log output.
Headers matching /(?i)(password|secret|token|key|auth|credential)/ → [REDACTED].
Body → [Body redacted by logMask].
show_stream_info: boolWhen true, show stream origin metadata. When false (default), show [Stream].
group_size: Option<usize>When set, only emit a log every n exchanges (group logging).
The log message includes the exchange count.