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("goes in both") -> 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"><<a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>></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>
>People,<br>
><br>
>Can anyone help me with this issue?<br>
><br>
>log.startLogging(open(logname,'w')<br>
>or<br>
>log.startLogging(open(logname,'w'), setStdout=True)<br>
><br>
>Both print the console output in the log. But nothing is displayed on<br>
>console! So I get a empty console<br>
>I would like to keep the console going also:<br>
><br>
>Precisely:<br>
>Console -> gets the print calls Not<br>
>Happening<br>
>Log -> gets the print calls + log.msg calls Happening<br>
><br>
>I understand that this might be a trivial issue, but I am not able to<br>
>figure<br>
>it out in the documentation available :(<br>
<br>
</div>Asking the same thing over and over again isn't going to get you an<br>
answer. Try making your question more clear. I haven't answered<br>
because I don't understand what you'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>