Setup logging before we check the config.

..so we can log errors about the config if it doesn't exist at all.