[Twisted-Python] twistd and loglevel question

Glyph Lefkowitz glyph at twistedmatrix.com
Thu Dec 22 16:28:44 MST 2016



> On Dec 22, 2016, at 2:38 PM, Jonathan Vanasco <twisted-python at 2xlp.com> wrote:
> 
> 
> On Dec 22, 2016, at 5:00 PM, Glyph Lefkowitz wrote:
>> Nope. If you want interaction with stdlib logging, there's https://twistedmatrix.com/documents/16.6.0/api/twisted.logger.STDLibLogObserver.html <https://twistedmatrix.com/documents/16.6.0/api/twisted.logger.STDLibLogObserver.html> and some associated utilites.  But that's up to you, not twistd.  (Maybe twistd should start doing something to integrate the log streams?)
> 
> thanks; I had seen that.  I didn't want any actual interaction... just to silence all the DEBUG lines.  i thought twistd might have registered something I could take advantage of.
> 
> all I needed to do, for now, was throw this in my twisted app:
> 
> 	import logging
> 	logging.basicConfig()
> 	logger = logging.getLogger()
> 	logger.setLevel(logging.WARNING) 
> 
> 
> i can work out a proper solution in the new year.

Looking forward to reviewing your ticket, then :)

-g
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20161222/b890404f/attachment-0002.html>


More information about the Twisted-Python mailing list