rest-assured/src/main/java/io/restassured/builder/ResponseSpecBuilder.java
public ResponseSpecBuilder log(LogDetail logDetail) {
        notNull(logDetail, LogDetail.class);
        spec.logDetail(logDetail);
        return this;
    }
public ResponseSpecBuilder log(LogDetail logDetail) {
        notNull(logDetail, LogDetail.class);
        spec.logDetail(logDetail);
        return this;
    }
public ResponseSpecBuilder log ( LogDetail logDetail ) { notNull ( logDetail , LogDetail . class ) ; spec . logDetail ( logDetail ) ; 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 ResponseSpecBuilder
Enabled logging with the specified log detail . Set a { @link LogConfig } to configure the print stream and pretty printing options .