Logging the session events in the proxy