[Twisted-Python] Debug logging

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Sat Mar 5 22:51:35 MST 2011


On 01:12 am, thomasdrake1 at gmail.com wrote:
>Why not try:
>
>from twisted.python import log
>
>log.err('an error happened')

except you should really only pass Failures to log.err, or None if 
you're calling it in an `except` block.

Jean-Paul
>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
>
>
>_______________________________________________
>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