Hi,

I wanted to log in a file and keep the console also going with it.

I am using
log.startLogging(open(logname, 'w'))

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.

Something like this I tried:
log.startLogging(sys.stdout,setStdout=False)

Doesnt help in solving the problem of getting both things:

Requirement:
log.msg("messageforlog")    -> goes to log
print "message for console" -> goes to console

Could anyone give some ideas on this?

Regards
Naman
_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to