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

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Sun Nov 24 13:43:52 MST 2013


On 07:35 pm, jonas.brunsgaard at gmail.com wrote:
>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?

See http://stackoverflow.com/questions/18244050/

Jean-Paul



More information about the Twisted-Python mailing list