title: Printing Function Output to Syslog?
body: <p>I want to make it so that the "stdout" and "stderr" output from "check_call()" is sent to Syslog.  Is this possible?</p>
  
  <p>Code:</p>
  
  <pre><code>def command(cmd, err=None, ifexit=False):
      try:
          check_call(shlex.split(cmd), stdout=null, stderr=null)
  
      except CalledProcessError:
          if err != None:
              print err
  
          if ifexit == True:
              exit(1)
  </code></pre>