log record string buffer improve to cow_buffer