[Twisted-Python] Debug logging

Thomas Drake thomasdrake1 at gmail.com
Sat Mar 5 18:12:23 MST 2011


Why not try:

from twisted.python import log

log.err('an error happened')
log.msg('something nice happened')

If you're set on using the logging module, why not read this:

http://twistedmatrix.com/documents/current/core/howto/logging.html

Tad

On Mar 5, 2011, at 5:00 PM, Juan Antonio IbaƱez Santorum wrote:

> Hello!
> 
>    I am running a smaill app using twistd. All works OK except I cannot get debugging messages into the log. I think I may to set logging level but I don't know if possible nor where it can be done. I am using the python logging module. Any help wourd be appreciated.
> 
> Regards
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python





More information about the Twisted-Python mailing list