10 lines
155 B
Python
10 lines
155 B
Python
import logging
|
|
|
|
|
|
logger = logging.getLogger("HANAB")
|
|
|
|
logger.setLevel(logging.DEBUG)
|
|
|
|
handler = logging.FileHandler("log.txt")
|
|
|
|
logger.addHandler(handler)
|