[Tutor] How to limit logs

barış ata brsata at gmail.com
Fri Jul 17 09:12:16 CEST 2009


hi,
i'm writing a log client to recieve logs from socket connection and display
on a textbox
now i have a few question
i used Pmw.ScrolledText but i don't now its buffer size. how  can i limit
it?
and i want to create a log file with logging module but i want to limit log
size
for example if user sets log file limit to 1000 lines, i have to save last
1000 line on the fly and refresh it until program closed. Any idea ?
tkanks...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090717/cd07bfc2/attachment.htm>


More information about the Tutor mailing list