def WriteFrontendLogEntry(self, event_id, request, response):
    log_msg = "%s-%s %d: %s %s %s %d %s" % (
        event_id, request.source_ip, response.code,
        request.method, request.url, request.user_agent, response.size,
        request.user)
    logging.info(log_msg)
Write a log entry for a Frontend or UI Request.
dataset/ETHPy150Open google/grr/grr/lib/log.py/GrrApplicationLogger.WriteFrontendLogEntry