Expand description
Structured logging infrastructure for netspeed-cli.
This module provides logging utilities that can be used throughout the application. It supports log levels, structured output, and runtime log level configuration.
Enums§
- Level
- Log level enumeration matching common severity levels.
Functions§
- current_
level - Get the current log level from the NETSPEED_LOG environment variable.
- debug
- Log a debug message.
- error
- Log an error message.
- format_
json_ entry - Format a structured log entry as JSON for machine-readable output.
- info
- Log an info message.
- is_
verbose - Check if verbose logging is enabled.
- log
- Log a message with structured key-value pairs.
- warn
- Log a warning message.