def performance_log(request):
 event = {'ip': _get_request_header(request, 'REMOTE_ADDR'), 'referer': _get_request_header(request, 'HTTP_REFERER'), 'accept_language': _get_request_header(request, 'HTTP_ACCEPT_LANGUAGE'), 'event_source': 'browser', 'event': _get_request_value(request, 'event'), 'agent': _get_request_header(request, 'HTTP_USER_AGENT'), 'page': _get_request_value(request, 'page'), 'id': _get_request_value(request, 'id'), 'expgroup': _get_request_value(request, 'expgroup'), 'value': _get_request_value(request, 'value'), 'time': datetime.datetime.utcnow(), 'host': _get_request_header(request, 'SERVER_NAME')}
 log.info(json.dumps(event, cls=DateTimeJSONEncoder))
 return HttpResponse(status=204)

def performance_log ( request ) : event = { 'ip' : _get_request_header ( request , 'REMOTE_ADDR' ) , 'referer' : _get_request_header ( request , 'HTTP_REFERER' ) , 'accept_language' : _get_request_header ( request , 'HTTP_ACCEPT_LANGUAGE' ) , 'event_source' : 'browser' , 'event' : _get_request_value ( request , 'event' ) , 'agent' : _get_request_header ( request , 'HTTP_USER_AGENT' ) , 'page' : _get_request_value ( request , 'page' ) , 'id' : _get_request_value ( request , 'id' ) , 'expgroup' : _get_request_value ( request , 'expgroup' ) , 'value' : _get_request_value ( request , 'value' ) , 'time' : datetime . datetime . utcnow ( ) , 'host' : _get_request_header ( request , 'SERVER_NAME' ) } log . info ( json . dumps ( event , cls = DateTimeJSONEncoder ) ) return HttpResponse ( status = 204 )
log when post call to "performance" url is made by a user .