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

Thomas Jacob jacob at internet24.de
Thu Apr 26 05:45:30 EDT 2007


Thanks for the hint!

But this needs to be done after the app has already started.
And thus after the twistd default logger has already logged its first
lines.

Which probably means the default logger
will always log/rotate a bit before my custom
logger gets a chance, right?

So best use syslog as the initial logger....

On Wed, 2007-04-25 at 13:59 +0200, Thomas Hervé wrote:
> 
> Currently, the only way I know is to do this:
> 
> from twisted.python import log
> log.theLogPublisher.observers.pop(0)
> 
> Now, this is one of the thing that should be fixed for the next release 
> (I hope)
> with http://twistedmatrix.com/trac/ticket/638






More information about the Twisted-Python mailing list