Add logging to client