title: How to use my logging class like a std C++ stream?
body: <p>I've a working logger class, which outputs some text into a richtextbox (Win32, C++).
  Problem is, i always end up using it like this:</p>
  
  <pre><code>stringstream ss;  
  ss &lt;&lt; someInt &lt;&lt; someString;  
  debugLogger.log(ss.str());
  </code></pre>
  
  <p>instead, it would be much more convenient to use it like a stream as in:</p>
  
  <pre><code>debugLogger &lt;&lt; someInt &lt;&lt; someString;
  </code></pre>
  
  <p>Is there a better way than forwarding everything to an internal stringstream instance? If'd do this, when would i need to flush?</p>