title: How to redirect stdout and stderr to logger in Python
body: <p>I have a logger that has a <code>RotatingFileHandler</code>.
  I want to redirect all <code>Stdout</code> and <code>Stderr</code> to the logger.
  How to do so?</p>