I\'ve got a project where I\'m using Twisted for my web server. When exceptions occur (such as network errors), it\'s printing to the console.
I\'ve already got log
Found it. It's actually quite easy:
from twisted.python import log
observer = log.PythonLoggingObserver(loggerName='logname')
observer.start()
You just set loggerName to the same logger name that you're using in logging.getLogger().
You can use twisted.python.log. For example:
from twisted.python import log
log.msg('Hello, world.')