Skip to main content

Module logging

Module logging 

Source
Expand description

Structured logging collection

Provides JSON-formatted structured logging with field extraction and log aggregation support for centralized collection.

Structs§

LogBuffer
Log buffer for aggregation
LogEntry
Structured log entry
LoggingConfig
Logging configuration for structured output

Enums§

LoggingError
Logging initialization error

Traits§

WithRequestId
Request ID extension for tracing spans

Functions§

create_log_entry
Create a structured log entry from current context
create_request_id
Create a new request ID
get_aggregated_logs
Get aggregated logs from a buffer
init_structured_logging
Initialize structured logging with JSON output