Spaces:
Runtime error
Runtime error
File size: 347 Bytes
c69cba4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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)
|