from sys import stdout
from logging import StreamHandler, getLogger
from twisted.python.log import startLogging, logfile
observer = startLogging(stdout, setStdout=False)
logging to file with twistd and python logging