APISonar


com.linecorp.armeria.common.logging.LogLevel.log

> com > linecorp > armeria > common > logging > LogLevel > log
com APIs linecorp APIs armeria APIs common APIs logging APIs LogLevel APIs log APIs

Example 1
public static void logRequest(
            Logger logger, RequestLog log,
            Function<? super RequestLog, LogLevel> requestLogLevelMapper,
            Function<? super RequestHeaders, ?> requestHeadersSanitizer,
            Function<Object, ?> requestContentSanitizer,
            Function<? super HttpHeaders, ?> requestTrailersSanitizer) {

        final LogLevel requestLogLevel = requestLogLevelMapper.apply(log);
        if (requestLogLevel.isEnabled(logger)) {
            requestLogLevel.log(logger, REQUEST_FORMAT,
                                log.toStringRequestOnly(requestHeadersSanitizer, requestContentSanitizer,
                                                        requestTrailersSanitizer));
        }
    }