Response response = RestAssured.given().log().method().contentType(ContentType.JSON)...private Logger log = Logger.getLogger(MyClass.class);--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
myLog.debug( this.myStringBuilder.toString() );
On Mon, Apr 17, 2017 at 10:37 AM, <akshay....@agrostar.in> wrote:
Hello!I'm using REST Assured for getting response in below manner:Response response = RestAssured.given().log().method().contentType(ContentType.JSON)...Also, there's a Logger instance in the same class as:private Logger log = Logger.getLogger(MyClass.class);
I would like to know if there's some way to redirect the output of log().method(). to my Logger object.
--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured...@googlegroups.com.
will redirect all log outputs of a ValidatableResponse to the supplied logger:
* <pre>
* resp.then().log().all( true );
* </pre>RequestionSpecification spec = new RequestSpecBuilder().log(LogDetail.ALL).build();Response response = given().spec(spec).get();--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured+unsubscribe@googlegroups.com.