title: How to have cout send to console and syslog simultaneously
body: <p>Can anyone give a simple example of creating a customized cout, I would like to have MyCout class to print on console and send string to syslog at the same time.</p>
  
  <pre><code>MyCout myCout
  
  myCout &lt;&lt; "Test" &lt;&lt; endl;
  </code></pre>
  
  <p>I need console output "Test" and "Test" sent to syslog.</p>