From 36568bc95c0b6b38ede6fde7adb7d4ee2863235f Mon Sep 17 00:00:00 2001 From: wookie184 Date: Tue, 11 Jun 2024 18:54:42 +0000 Subject: Deploying to docs from @ python-discord/bot-core@c17d29a38019ba05a65f1ba3cafa084d2dd76ec7 🚀 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/output/pydis_core.utils.logging.html | 91 ++++++++++++++++++++++++++----- 1 file changed, 77 insertions(+), 14 deletions(-) (limited to 'main/output/pydis_core.utils.logging.html') diff --git a/main/output/pydis_core.utils.logging.html b/main/output/pydis_core.utils.logging.html index fd00ff24..7eedce83 100644 --- a/main/output/pydis_core.utils.logging.html +++ b/main/output/pydis_core.utils.logging.html @@ -5,10 +5,10 @@ - + logging - Pydis Core Latest (11.1.0) - + @@ -72,7 +72,7 @@ Light mode + stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="feather-sun"> @@ -87,7 +87,7 @@ Dark mode + stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="icon-tabler-moon"> @@ -95,7 +95,7 @@ Auto light/dark mode + stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="icon-tabler-shadow"> @@ -105,6 +105,60 @@ + + Auto light/dark, in light mode + + + + + + + + + + + + + + + Auto light/dark, in dark mode + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -116,6 +170,8 @@
Hide table of contents sidebar
+Skip to content +
@@ -133,7 +189,8 @@
@@ -374,11 +431,17 @@ Back to top
- +
@@ -388,18 +451,18 @@
-
+

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)
@@ -423,7 +486,7 @@
 
 
-get_logger(name=None)[source]¶
+get_logger(name=None)[source]¶

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

Parameters:
@@ -440,7 +503,7 @@
-log_format[source]¶
+log_format[source]¶

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

@@ -524,7 +587,7 @@
- + \ No newline at end of file -- cgit v1.2.3