Fix and improve logging at startup

Use the logger for all output at startup and fix duplicate prefixes when
printing URLs.