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

[api] logging endpoint #16

Open
Vitineth opened this issue Jul 14, 2020 · 2 comments
Open

[api] logging endpoint #16

Vitineth opened this issue Jul 14, 2020 · 2 comments

Comments

@Vitineth
Copy link
Contributor

If we want to enable some more in depth logging on the front end (especially logging of errors), it would be handy to have an endpoint to which we can submit log reports. I'm not sure if we want this one to be used by anything else or just the frontend (could make it accessible to other third party apps to submit reports but need to be careful about spam).

I propose a POST only endpoint at /logs. Schema will need to be decided but will be quite flexible.

@Lan2u
Copy link
Member

Lan2u commented Jul 14, 2020

This won't scale and I think is best avoided, it might make sense for a single client but as soon as we have multiple clients all operating independently the logs will become less useful (also the size of them will rapidly become unmanageable). Better I think just to log attempts to use the gateway and then keep client logs separated.

@Vitineth
Copy link
Contributor Author

In that case keeping it internal only seems like a better option. I am going to transfer this over to the frontend repo and adjust it slightly because I will address front-end logging when I get around to the logging and analytics side of the project

@Vitineth Vitineth transferred this issue from UStAEnts/uems-gateway Jul 14, 2020
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