add logger setup

This commit is contained in:
Maximilian Keßler 2023-03-15 15:42:22 +01:00
parent f9abc8b2f5
commit b6b62e376f
Signed by: max
GPG key ID: BCC5A619923C0BA5

10
logger_setup.py Normal file
View file

@ -0,0 +1,10 @@
import logging
logger = logging.getLogger("HANAB")
logger.setLevel(logging.DEBUG)
handler = logging.FileHandler("log.txt")
logger.addHandler(handler)