Initial version from my blog post

http://www.technologytoolbox.com/blog/jjameson/archive/2009/03/26/sharepoint-uls-logs-flooded-with-preserving-template-record-with-size.aspx