From a87b85230fb9131cd2ccc50031ea67ddc828bd63 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Tue, 19 Sep 2023 16:05:51 +0100 Subject: Add log_format to the logging util to allow for standardised logging --- pydis_core/utils/logging.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pydis_core') diff --git a/pydis_core/utils/logging.py b/pydis_core/utils/logging.py index ecccb91a..c8eb5b19 100644 --- a/pydis_core/utils/logging.py +++ b/pydis_core/utils/logging.py @@ -9,6 +9,12 @@ else: LoggerClass = logging.getLoggerClass() TRACE_LEVEL = 5 +log_format = logging.Formatter("%(asctime)s | %(levelname)s | %(name)s | %(message)s") +""" +A :obj:`logging.Formatter` that can be used to standardise logging across all projects using pydis_core. + +:meta hide-value: +""" class CustomLogger(LoggerClass): -- cgit v1.2.3