logger
¶
Logger configuration.
ErrorHandler
¶
ErrorHandler()
Bases: StreamHandler
Custom error handler for logging.
Source code in src/images_upload_cli/logger.py
12 13 14 15 |
|
setup_logger
¶
setup_logger(log_level: str) -> ErrorHandler
Configure logger.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
log_level |
str
|
The log level to set for the logger. |
required |
Returns:
Name | Type | Description |
---|---|---|
ErrorHandler |
ErrorHandler
|
The error handler associated with the logger. |
Source code in src/images_upload_cli/logger.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
|