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 toCustomLoggerinstead ofLogger. Taken from a StackOverflow question.- Parameters
- Returns
A named instance of the logger.
- Return type