vscode-restclient icon indicating copy to clipboard operation
vscode-restclient copied to clipboard

Add more logging

Open MisinformedDNA opened this issue 6 years ago • 10 comments

A lot of times, I run a request, go do something else, and can't remember which one I ran. I can go to the history to see, but it would be nice if all this was captured in the "OUTPUT" window.

Personally, I would love see the "OUTPUT" window record all request and responses, so I can see of stream of everything I've done. This should be configurable.

MisinformedDNA avatar Oct 09 '18 20:10 MisinformedDNA

@MisinformedDNA nice suggestion, I will consider this carefully.

Huachao avatar Oct 09 '18 22:10 Huachao

In addition, a switch for verbose logging (including SSL option)

mikecarr avatar Jan 04 '19 17:01 mikecarr

Adding another vote for this one. Could use a lot more visibility when stringing requests/variables together, including connection details.

DumpySquare avatar Feb 12 '20 12:02 DumpySquare

Voting this up. I have added "rest-client.logLevel": "verbose" but there is still nothing in the Output > REST pane. If I make a POST with variables in the URL and json body, I want to see the actual request url, request headers, and request body that is made. This is especially needed when you string multiple requests together.

JtMotoX avatar Feb 26 '20 23:02 JtMotoX

This appears to be not working still. I set rest-client.logLevel to "verbose" and "info", neither seems to output anything on Output > REST panel. The panel remains blank.

momon avatar Oct 06 '20 14:10 momon

Any updates please?

aries-zhang avatar Dec 20 '21 04:12 aries-zhang

@aries-zhang I am currently comparing rest-client with httpyac. In httpyac I see all requests/response in the output (httpyac - Requests). Maybe it's worth a try for you. But httpyac doesn't have many downloads yet.

jb04021991 avatar Dec 20 '21 18:12 jb04021991

@aries-zhang I am currently comparing rest-client with httpyac. In httpyac I see all requests/response in the output (httpyac - Requests). Maybe it's worth a try for you. But httpyac doesn't have many downloads yet.

It looks more powerful with its script blocks, will give it a try - thanks heaps @jb04021991 👍

aries-zhang avatar Dec 20 '21 22:12 aries-zhang

To anyone that's coming to this discussion trying to get more information about your requests and responses, consider adding this to your settings.json:

"rest-client.previewOption": "exchange"

To preview your requests and responses.

RushingToCommit avatar Jan 25 '22 10:01 RushingToCommit

Any updates of this @Huachao it will be very helpfull thks!

MaxiDutra avatar May 03 '22 12:05 MaxiDutra