<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Nov 24, 2013 at 9:43 PM,  <span dir="ltr"><<a href="mailto:exarkun@twistedmatrix.com" target="_blank">exarkun@twistedmatrix.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5">On 07:35 pm, <a href="mailto:jonas.brunsgaard@gmail.com" target="_blank">jonas.brunsgaard@gmail.com</a> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Is there an easy way get an options object from the  .tac file?<br>
<br>
I my .tac file i have the following.<br>
<br>
fh = logging.FileHandler('/var/log/<u></u>ocmg/datastore.log')<br>
<br>
I would like to be able et replace '/var/log/ocmg/datastore.log' with the<br>
logfile option given by the user at the command line.<br>
<br>
Any suggestions?<br>
</blockquote>
<br></div></div>
See <a href="http://stackoverflow.com/questions/18244050/" target="_blank">http://stackoverflow.com/<u></u>questions/18244050/</a></blockquote><div><br></div><div>Okay. Thank you for the answer!</div><div><br></div><div>

Does anyone know if there are any plans to update, the logging system</div><div>in twistd at some point, so it integrates better with native python logging system?</div><div><br></div><div>I have to use the following logging scheme (glog - google logging)</div>

<div><div><br></div><div>I1125 00:38:34. 309273 140138991519488 log.py:443] Main loop terminated.</div><div>I1125 00:38:34. 309624 140138991519488 log.py:443] Server Shut Down.</div><div>I1125 00:41:09. 665297 140705081902848 log.py:443] Loaded.</div>

</div><div><br></div><div>would the easiest way to accomplich this be to just implement a </div><div>logger and use the --logger option with twisted?</div><div><br></div><div>Idealy I also need more log levels, is that possible?</div>

<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Jean-Paul<br>
<br>
______________________________<u></u>_________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com" target="_blank">Twisted-Python@twistedmatrix.<u></u>com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-<u></u>bin/mailman/listinfo/twisted-<u></u>python</a><br>
</blockquote></div><br></div></div>