title: How can I redirect output to a boost log?
body: <p>I have a C++ program that uses boost log, and I load a user-provided dynamic link library. I'd like to redirect stderr to the boost log, so that anytime the user's library does:</p>
  
  <pre><code>std::cerr &lt;&lt; "Some stuff";
  </code></pre>
  
  <p>It produces the same result** as:</p>
  
  <pre><code>BOOST_LOG_SEV(log,info) &lt;&lt; "Some stuff";
  </code></pre>
  
  <p>Is this possible, and if so then how do I do it?</p>
  
  <p>(Also, I'm not sure what to do about the severity... since <code>cerr &lt;&lt;</code> doesn't privide severity information. I'm open to suggestions on that as well...)</p>
  
  <p>** By "same result" I mean that it gets logged to the same log file as the rest of the log messages, and the same log formatter is applied to those lines.</p>