I am trying to implement logging system using iostreams. My question is: how can I add date/time stamp on iostream basis? What I want to acheive is as following:
cmylog << "Test" << std::endl;
And the output shall be
(I will be able to configure time stamp format but it is beyond my question, do not worry about it)
P.S. I will increase points for working solution.