[Twisted-Python] Different logging class for .tac file run by twistd

Thomas Jacob jacob at internet24.de
Wed Apr 25 07:15:55 EDT 2007

I would like to replace the default logger of
twistd with my own (a version of DailyLogFile).

Now it's possible to use startLogging just like
in a stand-alone twisted app, but twistd will
still start the standard logger (twistd.log),
so now I have two different log files.

application = service.Application("someapp")
web = internet.TCPServer(1234, server.Site(..))

log.startLogging(DailyLogFile(LOG_FILE, LOG_DIR, LOG_MODE))
<end .tac-file>

Any hints how to prevent the second, default
twistd log file?

More information about the Twisted-Python mailing list