logging#
Common logging related functions.
- class CustomLogger(name, level=0)[source]#
Bases:
LoggerCustom implementation of the
logging.Loggerclass with an addedtracemethod.
- get_logger(name=None)[source]#
Utility to make mypy recognise that logger is of type
CustomLogger.- Parameters:
- Return type:
- Returns:
An instance of the
CustomLoggerclass.
- log_format[source]#
A
logging.Formatterthat can be used to standardise logging across all projects using pydis_core.