CustomLogger

Description

class lab_utils.custom_logging.CustomLogger(name, level=0)[source]

Custom logging class based on the default Python Logger. It introduces the new logging level SUCCESS = 25, meant to be used to notify Slack about important, non-error events.

Attributes

Methods

CustomLogger.__init__

Calls the parent constructor and adds the SUCCESS = 25 logging level.

CustomLogger.success

Creates a log entry with level SUCCESS, similar to the standard error() and info().