I've recently converted some C code to a bit more native C++. This included changing printf() statements to std::cout statements. However, some printf()'s are rather lengthy and annoyingly long (and human-error-prone) to write in std::cout. Example (and this one is a short one):
printf("ERROR %d: %s: %s\n", event, origin ? origin : "?", fulltext.c_str());
std::cout << "ERROR " << event << ": " << origin ? origin : "?" << ": " << fulltext << "\n";
I personally find the first way much more clear and easier to write. What is the recommended way to do this in C++?