[Twisted-Python] Twisted Log Efficiency is poor?

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Thu Mar 15 10:20:44 MDT 2012


On 02:34 am, penxiao at cisco.com wrote:
>Hi experts,
>
>I have a question about twisted log.
>
>I used “from twisted.python import log” and “log.msg(msg_str)” to store 
>log for my twisted program (about 40MB log message)
>
>But it’s efficiency is poor, it will take more time to finish my 
>program when the log is open, if I close the log, the program will be 
>more faster than before.
>
>What is the problem?
>
>What should I do?

Why are you logging 40 megabyte messages?  That's not what the logging 
system is for.

Jean-Paul




More information about the Twisted-Python mailing list