Py-Hanabi/logger_setup.py

10 lines
155 B
Python

import logging
logger = logging.getLogger("HANAB")
logger.setLevel(logging.DEBUG)
handler = logging.FileHandler("log.txt")
logger.addHandler(handler)