Log to a string and also the console, as in the Python port of the launcher.