bot / api /logger.py
MWilinski's picture
deploy 1
ae4e1e8
raw
history blame contribute delete
352 Bytes
import logging
logger = logging.getLogger(__name__)
def setup_logger() -> None:
"""
Set up the logger.
"""
logger.setLevel(logging.DEBUG)
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
handler = logging.StreamHandler()
handler.setFormatter(formatter)
logger.addHandler(handler)