Is it possible to specify log level with a string, not an int?

前端 未结 0 603
挽巷
挽巷 2021-01-27 03:57

I know I can specify a log level like this:

>>> import logging
>>> logging.log(level=50, msg=\'critical log\')
CRITICAL:root:critical log


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题