Move the logger into own module for importing.

This commit is contained in:
2025-03-05 10:50:37 -05:00
parent 0702198f0a
commit 6e25d4e75a
3 changed files with 16 additions and 11 deletions
+10
View File
@@ -0,0 +1,10 @@
"""Creates logger for Agon bot."""
import logging
import sys
agon_logger = logging.getLogger("default")
agon_logger.setLevel(logging.INFO)
handler = logging.StreamHandler(sys.stdout)
handler.setFormatter(logging.Formatter("%(asctime)s:%(levelname)s:%(name)s: %(message)s"))
agon_logger.addHandler(handler)