TechDev
TechDev

Reputation: 433

Run Axios Interceptor

Im trying to do the logs . However i follow this documentation

https://github.com/hg-pyun/axios-logger

Im getting the same result but i wanted to ask how can i run it in vuejs like the picture shown? i only see the output in inspector in info. Kindly help how can i run this inceptor in my vuejs

enter image description here

Upvotes: 0

Views: 156

Answers (1)

Kapcash
Kapcash

Reputation: 6909

Currently, your Vue app can only print logs to the client, thus, on each user browser's console.

If you need some kind of dashboard to aggregate all production logs, you'll have to consider adding another tool. Such tool will send via http requests all your logs to their own dashboard, which you can consult later to analyse every user's logs.

You may consider using Sentry for example.

Upvotes: 1

Related Questions