class documentation

class StreamLogger:

View In Hierarchy

Fake file-like stream object that redirects writes to a logger instance

Taken from:
https://www.electricmonk.nl/log/2011/08/14/redirect-stdout-and-stderr-to-a-logger-in-python/
Method __init__ Undocumented
Method flush Undocumented
Method write Undocumented
Instance Variable linebuf Undocumented
Instance Variable log​_level Undocumented
Instance Variable logger Undocumented
def __init__(self, logger, log_level=logging.INFO):

Undocumented

def flush(self):

Undocumented

def write(self, buf):

Undocumented

linebuf: str =

Undocumented

log_level =

Undocumented

logger =

Undocumented