LoggingBlock

A class that extends the utility of a logger by automatically setting up a named block of logs that add context and can be that

block_settings: list
block_level_padding: str

 

__init__(self, logger, log_level=None, block_level=0, block_level_padding=None, tag=None, opener=None, prompt=None, closer=None, printoptions=None, captured_output_tag='', capture_output=True, captured_error_tag='', capture_errors=None, **tag_vars): 

 

@property
tag(self): 

 

stream_redirect(self, tag, base_stream): 

 

__enter__(self): 

 

__exit__(self, exc_type, exc_val, exc_tb): 

Feedback

Examples

Templates

Documentation