We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
简单粗暴在每个打印日志的方法后面加 removeHandler() 如: def debug(msg): _logger.debug("DEBUG " + str(msg)) _logger.removeHandler(_handler)
The text was updated successfully, but these errors were encountered:
这个问题一直没定位到原因,加 _logger.removeHandler(_handler) 某些情况下 日志不显示,不加的话,有些情况又日志重复。
_logger.removeHandler(_handler)
Sorry, something went wrong.
可以尝试把logging模块封装成单例的类看下是否可以解决问题...
seldom不能并发启动所有测试用例,有点不好
No branches or pull requests
简单粗暴在每个打印日志的方法后面加
removeHandler()
如:
def debug(msg):
_logger.debug("DEBUG " + str(msg))
_logger.removeHandler(_handler)
The text was updated successfully, but these errors were encountered: