Module logging

Module logging 

Source
Expand description

Structured logging and diagnostics

Re-exports§

pub use metrics::*;

Modules§

metrics
Metrics collection and reporting utilities

Structs§

ConnectionInfo
Connection information for logging
ConnectionLifecycle
Connection lifecycle tracker
DebugContext
Debug context
DynamicLogFilter
Dynamic filter that can be updated at runtime
ErrorContext
Error context for detailed logging
FrameInfo
Frame information for logging
InfoContext
Info context
LogEvent
Structured log event
LogFilter
Log filter configuration
LogFilterBuilder
Builder for creating log filters
Logger
Main logger struct
LoggingConfig
Logging configuration
NatTraversalInfo
NAT traversal information
RateLimiter
Rate limiter for preventing log spam
StructuredEventBuilder
Builder for structured events
StructuredLogEvent
Structured log event with full metadata
TraceContext
Trace context
TransportParamInfo
Transport parameter information
WarningContext
Warning context

Enums§

ConnectionEventType
Connection event types
ConnectionRole
Connection role for logging
ConnectionState
Connection lifecycle state
FrameEventType
Frame event types
LogLevel
Serializable log level
LoggingError
Logging errors
NatTraversalEventType
NAT traversal event types
TransportParamEventType
Transport parameter event types

Functions§

create_connection_lifetime_span
Create a span for the entire connection lifetime
create_connection_span
Create a span for connection operations
create_frame_span
Create a span for frame processing
format_bytes
Format bytes in a human-readable way
format_conn_id
Format a connection ID for display
format_duration
Format duration in a human-readable way
init_logging
Initialize the logging system
log_connection_closed
Log a connection closure event with optional error code
log_connection_established
Log connection established event including QUIC version info
log_connection_event
Log a connection event
log_connection_initiated
Log connection lifecycle events
log_connection_lost
Log a connection lost event caused by unexpected conditions
log_connection_migration
Log a connection migration from one path to another
log_debug
Log debug message
log_error
Log an error with context
log_error_with_context
Log error with full context
log_frame_event
Log a frame event
log_handshake_completed
Log successful handshake completion and its duration
log_handshake_started
Log when a handshake process starts for a connection
log_info
Log info message
log_nat_traversal_event
Log a NAT traversal event
log_packet_event
Log packet-level events
log_stream_event
Log stream events
log_trace
Log trace message
log_transport_param_event
Log a transport parameter event
log_warning
Log a warning
logger
Get the global logger instance
parse_structured_fields
Parse structured fields from a format string