getLogger

lab_utils.custom_logging.getLogger(name: Optional[str] = None)lab_utils.custom_logging.CustomLogger[source]

Overrides the Python standard logging.getLogger() to fix type completion hints, referring them to CustomLogger instead of Logger. Taken from a StackOverflow question.

Parameters

name (str, optional) – The logger name

Returns

A named instance of the logger.

Return type

CustomLogger