This is an ADR(Architecture Decision Record) rather than an issue I will consider in the future. But the discussion about this is open. The reason I chose std::clog is std::cerr flushes std::cout before outputting. `std::clog` ```cpp std::cout << "This is temporarily buffered to std::cout."; int my_int = 15; std::clog << "[dump] " << my_int << std::endl; std::cout << "NOW STD::COUT FLUSHED" <<std::endl; ``` ```console [dump] 15 This is temporarily buffered to std::cout.NOW STD::COUT FLUSHED ``` `std::cerr` ```cpp std::cout << "This is temporarily buffered to std::cout."; int my_int = 15; std::cerr << "[dump] " << my_int << std::endl; std::cout << "NOW STD::COUT FLUSHED" <<std::endl; ``` ```console This is temporarily buffered to std::cout.[dump] 15 NOW STD::COUT FLUSHED ```
Activity
sassan-dev commentedon Aug 20, 2024
For those who want to customize the output destination, see #93 .