Stream Classes #6
ryanmrichard
started this conversation in
Ideas
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.
|
1 reply
|
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? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The stream classes will be used for logging, output, and error messages. I'd recommend an API that's basically the same as
std::ostreamwith maybe aprintffunction for those who prefer to use that sort of API.Requirements:
std::ostream/std::istreamstd::cout<< my_rank << " " << my_data << std::endl;didn't produce mangled garbageGreat to have:
printfAPI; it's sometimes much easier than streamsAll reactions