[Twisted-Python] twistd and loglevel question

Jonathan Vanasco twisted-python at 2xlp.com
Thu Dec 22 15:38:51 MST 2016


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 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.

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


More information about the Twisted-Python mailing list