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