All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.entur.logging.cloud.logbook.ondemand.AbstractOndemandLogLevelLogstashLogbackSink Maven / Gradle / Ivy

There is a newer version: 3.0.1
Show newest version
package no.entur.logging.cloud.logbook.ondemand;

import com.fasterxml.jackson.core.JsonFactory;
import no.entur.logging.cloud.logbook.AbstractLogLevelSink;
import no.entur.logging.cloud.logbook.RemoteHttpMessageContextSupplier;
import no.entur.logging.cloud.logbook.ondemand.state.RequestHttpMessageStateSupplierSource;
import no.entur.logging.cloud.logbook.ondemand.state.ResponseHttpMessageStateSupplierSource;
import org.slf4j.Marker;

import java.util.function.BiConsumer;
import java.util.function.BooleanSupplier;


public abstract class AbstractOndemandLogLevelLogstashLogbackSink extends AbstractLogLevelSink {

    protected final RequestHttpMessageStateSupplierSource requestHttpMessageStateSupplierSource;
    protected final ResponseHttpMessageStateSupplierSource responseHttpMessageStateSupplierSource;

    protected final RemoteHttpMessageContextSupplier remoteHttpMessageContextSupplier;

    protected JsonFactory jsonFactory;
    protected final int maxBodySize;
    protected final int maxSize;

    public AbstractOndemandLogLevelLogstashLogbackSink(BiConsumer logConsumer, BooleanSupplier logLevelEnabled, JsonFactory jsonFactory, RequestHttpMessageStateSupplierSource requestHttpMessageStateSupplierSource, ResponseHttpMessageStateSupplierSource responseHttpMessageStateSupplierSource, int maxBodySize, int maxSize, RemoteHttpMessageContextSupplier remoteHttpMessageContextSupplier) {
        super(logLevelEnabled, logConsumer);
        this.jsonFactory = jsonFactory;
        this.requestHttpMessageStateSupplierSource = requestHttpMessageStateSupplierSource;
        this.responseHttpMessageStateSupplierSource = responseHttpMessageStateSupplierSource;
        this.maxBodySize = maxBodySize;
        this.maxSize = maxSize;
        this.remoteHttpMessageContextSupplier = remoteHttpMessageContextSupplier;
    }



}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy