expandable log buffer when the result string would be too long