I've used Google's logging library in the past and I would give it a solid B- grade. It gets the job done. I really dislike the streaming operator, but meh it's not that bad. It just feels weird if I concatenate the string beforehand:
LOG(INFO) << absl::StrCat(strs...);As I embark on my new project, I want to make intelligent decisions about what idioms to favor. Logging is a big one, so I'd love to hear what people out there use.
In particular, if there is a library that uses reflection to give named arguments, that would be perfect! My ideal callsite would look like this:
my::LogInfo("Hello, {person}!", {
.person = GetPersonObject(),
});
It would also be cool to get assertions baked into it, though that complicates the design space.
Anyone wanna chime in?
https://redd.it/1tf4rri
@r_cpp