Add logging to the Connection class