def setVerbosity(verbosity=0):
"""
set the verbosity level of logging
Args:
verbosity: set the verbosity level using an integer {0, 1, 2, 3, 4}
e.g. verbosity=0, imply DEBUG logging, it logs all level of logs
verbosity=1, imply INFO logging
verbosity=2, imply WARN logging
verbosity=3, imply ERROR logging
verbosity=4, imply FATAL logging, it logs only the lowest FATAL level
"""
_logger.setLevel(_verbosity(str(verbosity)))
评论列表
文章目录