Redirect output to the logger. Closes #3134.

Redirects:
    - the standard output
    - the standard error
    - the twisted log output
to the logger.