Determining if root logger is set to DEBUG level in Python?

后端 未结 3 369
小鲜肉
小鲜肉 2020-12-23 19:55

If I set the logging module to DEBUG with a command line parameter like this:

if (opt[\"log\"] == \"debug\"):
  logging.basicConfig(level=logging.DEBUG)
         


        
3条回答
提交回复
热议问题