Redirect logging to stdout.