APISonar


io.gravitee.reporter.api.log.Log.Log

> io > gravitee > reporter > api > log > Log > Log
io APIs gravitee APIs reporter APIs api APIs log APIs Log APIs Log APIs

Example 1
public LoggableClientRequest(final Request request) {
        super(request);
        this.log = new Log(request.metrics().timestamp().toEpochMilli());
        this.log.setRequestId(request.id());

        // Associate log
        this.request.metrics().setLog(log);

        // Create a copy of HTTP request headers
        log.setClientRequest(new io.gravitee.reporter.api.common.Request());
        log.getClientRequest().setMethod(this.method());
        log.getClientRequest().setUri(this.uri());
        log.getClientRequest().setHeaders(new HttpHeaders(this.headers()));
    }