[Twisted-Python] log config depending on nodaemon option

Markus Wanner markus at bluegap.ch
Wed Oct 28 05:10:10 MDT 2015


Hi,

I'm trying to configure logging of my application depending on whether
or not the -y (--nodaemon) option of twistd is given. Actually very
similar to the default behavior, I would just like to switch to daily
log files. But it seems the application created has no access to the
config (used by underlying twistd and the ApplicationRunner).

What's the best way to switch to daily log files using twistd?

Kind Regards

Markus Wanner



More information about the Twisted-Python mailing list