logging_interface
appimage_updater.instrumentation.logging_interface
¶
Logging interface for HTTP instrumentation with dependency injection.
ConfigurableHTTPLogger(base_logger, tracking_level='debug', request_level='debug', error_level='debug')
¶
HTTP logger with configurable log levels.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
base_logger
|
HTTPLogger
|
Underlying logger implementation |
required |
tracking_level
|
str
|
Level for start/stop tracking messages |
'debug'
|
request_level
|
str
|
Level for individual request messages |
'debug'
|
error_level
|
str
|
Level for error messages |
'debug'
|
Source code in src/appimage_updater/instrumentation/logging_interface.py
HTTPLogger
¶
LoguruHTTPLogger(logger_name='appimage_updater.instrumentation.http_tracker')
¶
TraceHTTPLogger(use_rich=True)
¶
HTTP logger that outputs real-time trace information to console.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
use_rich
|
bool
|
Whether to use Rich console for colored output |
True
|
Source code in src/appimage_updater/instrumentation/logging_interface.py
create_default_http_logger(verbose=False)
¶
Create default HTTP logger with appropriate verbosity.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
verbose
|
bool
|
If True, use info level for tracking messages |
False
|
Returns:
Type | Description |
---|---|
ConfigurableHTTPLogger
|
Configured HTTP logger |
Source code in src/appimage_updater/instrumentation/logging_interface.py
create_trace_http_logger(use_rich=True)
¶
Create trace HTTP logger for real-time request monitoring.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
use_rich
|
bool
|
Whether to use Rich console for colored output |
True
|
Returns:
Type | Description |
---|---|
TraceHTTPLogger
|
Trace HTTP logger |