[Twisted-Python] multiline log entries

Pet petshmidt at googlemail.com
Thu May 6 10:30:20 EDT 2010


Hello!

Is it possible to print multiline debug messages into log?

If print a query it looks like this


2010-05-06 10:10:07 [HTTPChannel,0,192.168.2.15]                     SELECT *
2010-05-06 10:10:07 [HTTPChannel,0,192.168.2.15]
FROM foo AS a
2010-05-06 10:10:07 [HTTPChannel,0,192.168.2.15]
JOIN bar AS b ON a.id = b.id
2010-05-06 10:10:07 [HTTPChannel,0,192.168.2.15]
WHERE a.id = 1
2010-05-06 10:10:07 [HTTPChannel,0,192.168.2.15]
ORDER BY id DESC
2010-05-06 10:10:07 [HTTPChannel,0,192.168.2.15]                     LIMIT 1;


it would be more practical to have only the query without timestamp on
other things

Thanks!



More information about the Twisted-Python mailing list