How to implement different levels for specific modules in Python

后端 未结 1 344
误落风尘
误落风尘 2021-01-01 16:13

From this stackoverflow question, how does one implement the following configuration file?

[logger_qpid]
level=NOTSET
handlers=nullHandler
qualname=qpid
prop         


        
1条回答
  •  天命终不由人
    2021-01-01 17:01

    From the suds package's documentation site, you can set the level for a specific package by using the setLevel method. For example, here's how to set the level of all suds logging to INFO level (place after logging.basicConfig() code):

    logging.getLogger('suds').setLevel(logging.INFO)
    

    0 讨论(0)
提交回复
热议问题