[Twisted-Python] How to get ServerOptions in tac file.

Jonas Brunsgaard jonas.brunsgaard at gmail.com
Sun Nov 24 12:35:05 MST 2013


Is there an easy way get an options object from the  .tac file?

I my .tac file i have the following.

fh = logging.FileHandler('/var/log/ocmg/datastore.log')

I would like to be able et replace '/var/log/ocmg/datastore.log' with the
logfile option given by the user at the command line.

Any suggestions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20131124/c0d38cf5/attachment.html>


More information about the Twisted-Python mailing list