Add a logging singleton
Log connection if required
Bugfix: login was not being attempted