I ll try to rephrase it better:<br><br>I simply want the print statement to appear in both the log file and the console.<br>print(&quot;goes in both&quot;) -&gt; the log also gets this and the console also.<br><br>Thanks<br>
<br><br><br><br><div class="gmail_quote">On Thu, Nov 5, 2009 at 1:29 PM,  <span dir="ltr">&lt;<a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 08:59 am, <a href="mailto:namanvit@gmail.com">namanvit@gmail.com</a> wrote:<br>
&gt;People,<br>
&gt;<br>
&gt;Can anyone help me with this issue?<br>
&gt;<br>
&gt;log.startLogging(open(logname,&#39;w&#39;)<br>
&gt;or<br>
&gt;log.startLogging(open(logname,&#39;w&#39;), setStdout=True)<br>
&gt;<br>
&gt;Both print the console output in the log. But nothing is displayed on<br>
&gt;console! So I get a empty console<br>
&gt;I would like to keep the console going also:<br>
&gt;<br>
&gt;Precisely:<br>
&gt;Console -&gt; gets the print calls                             Not<br>
&gt;Happening<br>
&gt;Log       -&gt; gets the print calls + log.msg calls      Happening<br>
&gt;<br>
&gt;I understand that this might be a trivial issue, but I am not able to<br>
&gt;figure<br>
&gt;it out in the documentation available :(<br>
<br>
</div>Asking the same thing over and over again isn&#39;t going to get you an<br>
answer.  Try making your question more clear.  I haven&#39;t answered<br>
because I don&#39;t understand what you&#39;re trying to achieve.<br>
<br>
Jean-Paul<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</div></div></blockquote></div><br>