switch sampled_logs to C++
spacing