-

logging#

+

logging#

Common logging related functions.

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

Bases: Logger

-

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

+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)
@@ -437,13 +441,13 @@
 
Parameters:
    -
  • msg (str) – The message to be logged.

  • +
  • msg (str) – The message to be logged.

  • args – Passed to the base log function as is.

  • kwargs – Passed to the base log function as is.

Return type:
-

None

+

None

@@ -452,11 +456,11 @@
-get_logger(name=None)[source]#
+get_logger(name=None)[source]#

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

Parameters:
-

name (Optional[str]) – The name given to the logger.

+

name (Optional[str]) – The name given to the logger.

Return type:

CustomLogger

@@ -541,10 +545,10 @@ - - - - - + + + + + \ No newline at end of file -- cgit v1.2.3