fix for #912.  Modify logging unittest to dynamically create long buf.