python No handlers could be found for logger错误的解决

在import logging之后,有时程序调试阶段不能正常运行,但只会报 No handlers could be found for logger "module"错误.

查看详细的log信息,需要在之后加入logging.basicConfig()

import logging
logging.basicConfig()

现在,你可以看到错误并调试你的代码了.

posted on 2014-08-20 10:24  齐柏林飞艇  阅读(11941)  评论(0编辑  收藏  举报