Skip to content

Commit 7cfbb50

Browse files
committed
Update logging format
1 parent 045023d commit 7cfbb50

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

pydis_core/utils/logging.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
LoggerClass = logging.getLoggerClass()
1010

1111
TRACE_LEVEL = 5
12-
log_format = logging.Formatter("%(asctime)s | %(levelname)s | %(name)s | %(message)s")
12+
log_format = logging.Formatter(
13+
fmt="%(asctime)s | %(levelname)s | %(name)s:%(funcName)s:%(lineno)d - %(message)s",
14+
datefmt="%Y-%m-%d %H:%M:%S",
15+
)
1316
"""
1417
A :obj:`logging.Formatter` that can be used to standardise logging across all projects using pydis_core.
1518

0 commit comments

Comments
 (0)