Add user agent and ip address to logging