Added basic logging (also logs new HTTPS connections).