参考文章: https://blog.csdn.net/huilan_same/article/details/51858817
通过对logger.handlers判断如果logger.handlers列表为空,则添加,否则,直接去写日志