Separated macro-based logging API from impl, renamed default impl. (#777)
The separation of the impl from the API means that it is more possible to independently test variations of the API by changing the macro definitions in log.h. The default StringLogger impl is now called StringToStreamLogger, and takes an optional ostream pointer on input - this makes it more testable. It is assumed that std::cerr will be used here nearly all of the time in practice.
Showing
tests/string_logger_test.cc
0 → 100644
Please register or sign in to comment