Hello,
Does anyone have an example of how to redefine the C++ built in clog to instead have a new associated rdbuf() which is processed to be a tee to the original clog.rdbuf() and the rdbuf() of a ofstream object to a log file on disk.
The intention is to have the code use the std::clog throughout but to have it go to the both the default clog destination as well as to a log file on disk.
Thanks.
-William