save log buffer.