log.py 174 字节
Newer Older
Q
qiaolongfei 已提交
1 2 3 4 5 6 7
import logging

logger = logging

logger.basicConfig(
    format='[%(levelname)s %(asctime)s %(filename)s:%(lineno)s] %(message)s')
logger.getLogger().setLevel(logging.INFO)