In the CVS version of twisted, there have been some modifications to make the default logging less intrusive (it won't write to stdout by default). If you just use twistd to run your apps, you shouldn't notice any difference, but if you like to write scripts that you run directly that start the reactor directly, you might be wondering what happened to logging. Here's a little recipe to turn on logging again.
import sys
from twisted.python import log
log.startLogging(sys.stdout, 0)
If you wish, you can also use any file in place of sys.stdout.
No comments:
Post a Comment