def METHOD_NAME(self, record: logging.LogRecord):
    message = super(ViURDefaultLogger, self).format(record)
    try:
        currentReq = current.request.get()
        TRACE = "projects/{}/traces/{}".format(client.project, currentReq._traceID)
        currentReq.maxLogLevel = max(currentReq.maxLogLevel, record.levelno)
        logID = currentReq.request.environ.get("HTTP_X_APPENGINE_REQUEST_LOG_ID")
    except:
        TRACE = None
        logID = None
    self.transport.send(
        record,
        message,
        resource=self.resource,
        labels={
            "project_id": conf["viur.instance.project_id"],
            "module_id": "default",
            "version_id":
                conf["viur.instance.app_version"]
                if not conf["viur.instance.is_dev_server"]
                else "dev_appserver",
        },
        trace=TRACE,
        operation={
            "first": False,
            "last": False,
            "id": logID
        }
    )