Py-Hanabi/logger_setup.py

11 lines
155 B
Python
Raw Normal View History

2023-03-15 15:42:22 +01:00
import logging
logger = logging.getLogger("HANAB")
logger.setLevel(logging.DEBUG)
handler = logging.FileHandler("log.txt")
logger.addHandler(handler)