Added support for X-Forwarded-For and cipher logging