Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to save log to text #20

Open
nyalldawson opened this issue Jan 27, 2019 · 2 comments
Open

Add option to save log to text #20

nyalldawson opened this issue Jan 27, 2019 · 2 comments

Comments

@nyalldawson
Copy link
Collaborator

Add a general "save" button which saves all requests (and response) details to a txt file (or json?). We could include QGIS debugging info at the start, e.g. QGIS version.

Would be useful for QGIS bug reports -- we could request network activity logs from users with private WMS/WFS/etc servers who are hitting errors.

@nyalldawson
Copy link
Collaborator Author

To do this we should implement the visitor pattern - and have a visitor for "save to txt", "save to json", etc...

@ThomasG77
Copy link

ThomasG77 commented Feb 28, 2020

Wondering how to produce POST calls within QGIS. I've started exploring the code to dump requests to JSON but I'm unable to find a case to produce some POST requests and I know the case exists e.g https://github.com/rduivenvoorde/qgisnetworklogger/blob/master/Logger/model.py#L96.
Do you know a good use case to make POST in QGIS, so I could see them in your tool and debug to export to JSON? Thanks

FIY, do not hesitate to comment on my sample https://gist.github.com/ThomasG77/947212b91b57e69e25982dadb77afcf6 (it writes all lines to JSON)
We can discuss how you would see integration of this script within the UI?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants