[Twisted-Python] log config depending on nodaemon option

2015-10-28 Thread Markus Wanner
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

Re: [Twisted-Python] log config depending on nodaemon option

2015-10-28 Thread Glyph Lefkowitz
> On Oct 28, 2015, at 4:10 AM, Markus Wanner wrote: > > 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 i

Re: [Twisted-Python] AMP with a long-lived connection - results and deferred?

2015-10-28 Thread David Ripton
On 10/28/2015 02:24 AM, Oon-Ee Ng wrote: > Working off the example ampserver.py and ampclient.py examples, I > wanted to build a client which maintains a single connection while > allowing the passing of messages back and forth. However I'm stuck at > one of the most basic steps, getting back the r