Skip to main content

Module logging

Module logging 

Source
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.