Duncan Booth duncan at NOSPAMrcp.co.uk
Mon Jul 23 09:48:38 CEST 2001

Lee Nutter <leenutter at australia.edu> wrote in 
news:mailman.995736253.29035.python-list at python.org:

> This works, but I have been told it will be slow if error.log gets big, 
> Is there another way to do this?
Usually the way to do this sort of thing would be to write something to 
view your error log that starts displaying from the most recent entry. That 
way you can preserve the speed of appending to the file, but still see the 
latest error messages first.

In other words, rather than writing the file backwards, write something to 
read it backwards one entry at a time.

Duncan Booth                                             duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?

More information about the Python-list mailing list