logger
¶
Logger configuration.
Classes:
Name | Description |
---|---|
ErrorHandler |
Custom error handler for logging. |
Functions:
Name | Description |
---|---|
setup_logger |
Configure logger. |
ErrorHandler
¶
ErrorHandler()
Bases: StreamHandler
Custom error handler for logging.
Methods:
Name | Description |
---|---|
emit |
Emit a record. |
has_error_occurred |
Check if an error has occurred. |
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 |
|