rest-assured/src/main/java/io/restassured/config/LogConfig.java
public LogConfig enableLoggingOfRequestAndResponseIfValidationFails(LogDetail logDetail) {
        return new LogConfig(defaultPrintStream, prettyPrintingEnabled, logDetail, urlEncodeRequestUri, true);
    }
public LogConfig enableLoggingOfRequestAndResponseIfValidationFails(LogDetail logDetail) {
        return new LogConfig(defaultPrintStream, prettyPrintingEnabled, logDetail, urlEncodeRequestUri, true);
    }
public LogConfig enableLoggingOfRequestAndResponseIfValidationFails ( LogDetail logDetail ) { return new LogConfig ( defaultPrintStream , prettyPrintingEnabled , logDetail , urlEncodeRequestUri , true ) ; }
Enable logging of both the request and the response if REST Assureds test validation fails with the specified log detail

@param logDetail The log detail to show in the log
@return A new LogConfig instance
Enable logging of both the request and the response if REST Assureds test validation fails with the specified log detail