Campoie / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Improve logging #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Logging should also include headers

Original issue reported on code.google.com by johan.ha...@gmail.com on 22 Jun 2011 at 7:51

GoogleCodeExporter commented 9 years ago
And there should also be a way to log requests

Original comment by johan.ha...@gmail.com on 16 Dec 2011 at 3:23

GoogleCodeExporter commented 9 years ago
Something like this:

given().
       log().all(). // Logs request headers (including cookies) and body
expect().
       log().body(). // Logs only the response body
when().
       .. 

These should work:
log.all()
log.body()
log.headers()
log.cookies()

To allow for backward compatibility we could possibly make the RequestLogConfig 
extend RequestSpecification and ResponseLogConfig could extend 
ResponseSpecification

Original comment by johan.ha...@gmail.com on 17 Dec 2011 at 2:47

GoogleCodeExporter commented 9 years ago
It should also be possible to configure the LogConfig in the RestAssuredConfig

Original comment by johan.ha...@gmail.com on 17 Dec 2011 at 2:48

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 19 Dec 2011 at 7:34