Split the logger code out of the launcher.