public MockMvcRequestSpecBuilder log(LogDetail logDetail) {
        notNull(logDetail, LogDetail.class);
        LogConfig logConfig = spec.getRestAssuredMockMvcConfig().getLogConfig();
        PrintStream printStream = logConfig.defaultStream();
        boolean prettyPrintingEnabled = logConfig.isPrettyPrintingEnabled();
        boolean shouldUrlEncodeRequestUri = logConfig.shouldUrlEncodeRequestUri();
        spec.setRequestLoggingFilter(new RequestLoggingFilter(logDetail, prettyPrintingEnabled, printStream, shouldUrlEncodeRequestUri));
        return this;
    }
public MockMvcRequestSpecBuilder log(LogDetail logDetail) {
        notNull(logDetail, LogDetail.class);
        LogConfig logConfig = spec.getRestAssuredMockMvcConfig().getLogConfig();
        PrintStream printStream = logConfig.defaultStream();
        boolean prettyPrintingEnabled = logConfig.isPrettyPrintingEnabled();
        boolean shouldUrlEncodeRequestUri = logConfig.shouldUrlEncodeRequestUri();
        spec.setRequestLoggingFilter(new RequestLoggingFilter(logDetail, prettyPrintingEnabled, printStream, shouldUrlEncodeRequestUri));
        return this;
    }
public MockMvcRequestSpecBuilder log ( LogDetail logDetail ) { notNull ( logDetail , LogDetail . class ) ; LogConfig logConfig = spec . getRestAssuredMockMvcConfig ( ) . getLogConfig ( ) ; PrintStream printStream = logConfig . defaultStream ( ) ; boolean prettyPrintingEnabled = logConfig . isPrettyPrintingEnabled ( ) ; boolean shouldUrlEncodeRequestUri = logConfig . shouldUrlEncodeRequestUri ( ) ; spec . setRequestLoggingFilter ( new RequestLoggingFilter ( logDetail , prettyPrintingEnabled , printStream , shouldUrlEncodeRequestUri ) ) ; return this ; }
Enabled logging with the specified log detail. Set a {@link LogConfig} to configure the print stream and pretty printing options.

@param logDetail The log detail.
@return MockMvcRequestSpecBuilder
Enabled logging with the specified log detail . Set a { @link LogConfig } to configure the print stream and pretty printing options .