Stream Classes #6
Replies: 2 comments 2 replies
-
I guess, we might prefer using a library if we can find a good one. So, I checked out some and listed ones with compatible licenses and active development. All needs to be configured for rank 0 print, but they guarantee thread safety.
|
Beta Was this translation helpful? Give feedback.
-
Thanks for looking into this @keceli. Can you comment on the compatibility with std::ostream? I guess one possible advantage of boost::log is that we already have boost dependencies? |
Beta Was this translation helpful? Give feedback.
-
The stream classes will be used for logging, output, and error messages. I'd recommend an API that's basically the same as
std::ostream
with maybe aprintf
function for those who prefer to use that sort of API.Requirements:
std::ostream
/std::istream
std::cout<< my_rank << " " << my_data << std::endl;
didn't produce mangled garbageGreat to have:
printf
API; it's sometimes much easier than streamsBeta Was this translation helpful? Give feedback.
All reactions