1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 11:00:05 +08:00
SpaceVim/bundle/deoplete-jedi/rplugin/python3/deoplete/sources/deoplete_jedi/helper.py
wsdjeg 459d676373 chore(jedi): use bundle deoplete_jedi
arty/typeshed/tests/stubtest_whitelists/py36.txt
2022-10-23 16:00:31 +08:00

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)