add logger setup
This commit is contained in:
parent
f9abc8b2f5
commit
b6b62e376f
1 changed files with 10 additions and 0 deletions
10
logger_setup.py
Normal file
10
logger_setup.py
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
import logging
|
||||||
|
|
||||||
|
|
||||||
|
logger = logging.getLogger("HANAB")
|
||||||
|
|
||||||
|
logger.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
|
handler = logging.FileHandler("log.txt")
|
||||||
|
|
||||||
|
logger.addHandler(handler)
|
Loading…
Reference in a new issue