Expand description
Structured logging and diagnostics
Re-exports§
pub use metrics::*;
Modules§
- metrics
- Metrics collection and reporting utilities
Structs§
- Connection
Info - Connection information for logging
- Connection
Lifecycle - Connection lifecycle tracker
- Debug
Context - Debug context
- Dynamic
LogFilter - Dynamic filter that can be updated at runtime
- Error
Context - Error context for detailed logging
- Frame
Info - Frame information for logging
- Info
Context - Info context
- LogEvent
- Structured log event
- LogFilter
- Log filter configuration
- LogFilter
Builder - Builder for creating log filters
- Logger
- Main logger struct
- Logging
Config - Logging configuration
- NatTraversal
Info - NAT traversal information
- Rate
Limiter - Rate limiter for preventing log spam
- Structured
Event Builder - Builder for structured events
- Structured
LogEvent - Structured log event with full metadata
- Trace
Context - Trace context
- Transport
Param Info - Transport parameter information
- Warning
Context - Warning context
Enums§
- Connection
Event Type - Connection event types
- Connection
Role - Connection role for logging
- Connection
State - Connection lifecycle state
- Frame
Event Type - Frame event types
- LogLevel
- Serializable log level
- Logging
Error - Logging errors
- NatTraversal
Event Type - NAT traversal event types
- Transport
Param Event Type - 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