hf-qa-demo / qa_engine /logger.py
KonradSzafer's picture
initial commit
c69cba4
raw
history blame
347 Bytes
import logging
logger = logging.getLogger(__name__)
def setup_logger() -> None:
"""
Logger setup.
"""
logger.setLevel(logging.DEBUG)
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
handler = logging.StreamHandler()
handler.setFormatter(formatter)
logger.addHandler(handler)