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 levelSUCCESS
= 25, meant to be used to notify Slack about important, non-error events.Attributes
Methods
Calls the parent constructor and adds the
SUCCESS
= 25 logging level.Creates a log entry with level
SUCCESS
, similar to the standarderror()
andinfo()
.