fix #339 so we now have a maximum log cache size (which defaults to 1000) so we can leave the log UI up for a long time and it will trim the earlier logs