-

logging#

+

logging¶

Common logging related functions.

-class CustomLogger(name, level=0)[source]#
+class CustomLogger(name, level=0)[source]¶

Bases: Logger

Custom implementation of the logging.Logger class with an added trace method.

-trace(msg, *args, **kwargs)[source]#
+trace(msg, *args, **kwargs)[source]¶

Log the given message with the severity "TRACE".

To pass exception information, use the keyword argument exc_info with a true value:

logger.trace("Houston, we have an %s", "interesting problem", exc_info=1)
@@ -416,7 +416,7 @@
 
 
-get_logger(name=None)[source]#
+get_logger(name=None)[source]¶

Utility to make mypy recognise that logger is of type CustomLogger.

Parameters:
@@ -433,7 +433,7 @@
-log_format[source]#
+log_format[source]¶

A logging.Formatter that can be used to standardise logging across all projects using pydis_core.

@@ -515,7 +515,7 @@
- + -- cgit v1.2.3