This repository has been archived on 2025-04-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
off-cooldown-bot/off_cooldown_bot/logger.py
T
2025-03-18 10:03:51 -04:00

11 lines
305 B
Python

"""Creates logger for Agon bot."""
import logging
import sys
ocd_logger = logging.getLogger("default")
ocd_logger.setLevel(logging.INFO)
handler = logging.StreamHandler(sys.stdout)
handler.setFormatter(logging.Formatter("%(asctime)s:%(levelname)s:%(name)s: %(message)s"))
ocd_logger.addHandler(handler)