spateo.external.lack¶
Classes¶
Aristotle ecosystem-specific logger setting up logging for the package. |
|
Functions¶
|
Given a logger name, silence it completely. |
|
Given a logger name, silence it completely. |
|
Module Contents¶
- spateo.external.lack.silence_logger(name)[source]¶
Given a logger name, silence it completely.
- Parameters:
- name str
name of the logger
- spateo.external.lack.set_logger_level(name, level)[source]¶
Given a logger name, silence it completely.
- Parameters:
- name str
name of the logger
- spateo.external.lack.format_logging_message(msg, logging_level, indent_level=1, indent_space_num=6)[source]¶
- class spateo.external.lack.Logger(namespace='main', level=None)[source]¶
Aristotle ecosystem-specific logger setting up logging for the package.
- namespaced(namespace)[source]¶
Function decorator to set the logging namespace for the duration of the function.
- Parameters:
- namespace str
the namespace
- namespaced_context(namespace)[source]¶
Context manager to set the logging namespace.
- Parameters:
- namespace str
the namespace
- namespace_message(message)[source]¶
Add namespace information at the beginning of the logging message.
- Parameters:
- message str
the logging message
- Returns:
namespaced message
- Return type:
string
- request_report_hook(bn: int, rs: int, ts: int) None [source]¶
A callback required by the request lib: The reporthook argument should be a callable that accepts a block number, a read size, and the total file size of the URL target. The data argument should be valid URL encoded data.
- Parameters:
- bs
block number
- rs
read size
- ts
total size
- class spateo.external.lack.LoggerManager(namespace: str = 'lack', temp_timer_logger: str = 'lack-temp-timer-logger')[source]¶