title: How to redefine clog's rdbuf() to be a tee to the original rdbuf() of clog and that of a log file?
body: <p>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.</p>
  
  <p>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.</p>
  
  <p>Thanks.</p>
  
  <p>-William</p>