mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 11:00:05 +08:00
459d676373
arty/typeshed/tests/stubtest_whitelists/py36.txt
10 lines
315 B
Python
Vendored
10 lines
315 B
Python
Vendored
def set_debug(logger, path):
|
|
from logging import FileHandler, Formatter, DEBUG
|
|
hdlr = FileHandler(path)
|
|
logger.addHandler(hdlr)
|
|
datefmt = '%Y/%m/%d %H:%M:%S'
|
|
fmt = Formatter(
|
|
"%(levelname)s %(asctime)s %(message)s", datefmt=datefmt)
|
|
hdlr.setFormatter(fmt)
|
|
logger.setLevel(DEBUG)
|