Hi,<br><br>I wanted to log in a file and keep the console also going with it.<br><br>I am using <br>log.startLogging(open(logname, 'w'))<br><br>whatever documentation I could find about this API, it suggested me to pass setStdout=False(in order to keep stdout away from putting into log) somewhere in the startlogging function.<br>
<br>Something like this I tried:<br>log.startLogging(sys.stdout,setStdout=False)<br><br>Doesnt help in solving the problem of getting both things:<br><br>Requirement:<br>log.msg("messageforlog") -> goes to log<br>
print "message for console" -> goes to console<br><br>Could anyone give some ideas on this?<br><br>Regards<br>Naman<br>