@Override
    public Function<? super HttpService, ? extends HttpService> newDecorator(LoggingDecorator parameter) {
        final float successSamplingRate =
                parameter.successSamplingRate() >= 0.0f ? parameter.successSamplingRate()
                                                        : parameter.samplingRate();
        final float failureSamplingRate =
                parameter.failureSamplingRate() >= 0.0f ? parameter.failureSamplingRate()
                                                        : parameter.samplingRate();
        return LoggingService.builder()
                             .logWriter(LogWriter.builder()
                                                 .requestLogLevel(parameter.requestLogLevel())
                                                 .successfulResponseLogLevel(
                                                         parameter.successfulResponseLogLevel())
                                                 .failureResponseLogLevel(parameter.failureResponseLogLevel())
                                                 .build())
                             .successSamplingRate(successSamplingRate)
                             .failureSamplingRate(failureSamplingRate)
                             .newDecorator();
    }
Creates a new decorator with the specified {@link LoggingDecorator}.
core/src/main/java/com/linecorp/armeria/server/annotation/decorator/LoggingDecoratorFactoryFunction.java