Class to output to several ostreams (file and console)
问题 Right, I'm not even sure how to correctly formulate this; I feel it's a bit of an involved question. I'm sure someone can help me out here though. This is what I want to do: Have a single class that I can send stuff to, like this. icl << "Blah blah blah" << std::endl; I want to be able to .attach() classes that inherit std::basic_ostream to it. Those classes would then be able to format the output their own way. One might add a timestamp and write to a log, the other might write it to the