Discussion:
[Twisted-Python] twistd and loglevel question
Glyph Lefkowitz
2016-12-22 23:28:44 UTC
Permalink
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.
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

Loading...