Helper utility to provide reopen_logs functionality to anything that logs to stdout.