- 使用时,from xxx import get_logger
- 可自定义日志formater,日志输出路径
- 测试的结果,可以在./log/xxx.log文件中看到输出的日志
- 例如:{"asctime": "2018-09-28 09:52:12,622", "threadName": "MainThread", "thread": 4338656704, "name": "proxyCheck", "levelname": "ERROR", "%(lineno": null, "module": "mylog", "funcName": "test", "message": "division by zero"}