[Twisted-Python] Logging to both console and file (using twisted logging API)?
namanvit at gmail.com
Thu Oct 29 08:37:06 EDT 2009
I wanted to log in a file and keep the console also going with it.
I am using
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:
Doesnt help in solving the problem of getting both things:
log.msg("messageforlog") -> goes to log
print "message for console" -> goes to console
Could anyone give some ideas on this?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-Python