-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
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
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;[dump] 15
This is temporarily buffered to std::cout.NOW STD::COUT FLUSHEDstd::cerr
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;This is temporarily buffered to std::cout.[dump] 15
NOW STD::COUT FLUSHEDMetadata
Metadata
Assignees
Labels
No labels