How can I log in to Google Cloud Logging from an AngularJS app?

I would like to be able to view client-side errors in the Google Cloud Log viewer. Is it possible to create journal entries from an AngularJS application, and if so, how?

+4
source share
2 answers

Stackdriver error reports are specifically designed for application errors, I recommend that you use it rather than Stackdriver Logging to report errors.

For client-side error reporting, you need to use the HTTP reportAPI with an API key.

JavaScript, : https://github.com/GoogleCloudPlatform/stackdriver-errors-js

Angular ( ). , . , .

+3

Logs Viewer, GCE AWS EC2 -

. , , .

, - . , . .

Stackdriver Error Reporting API , . , Stackdriver, .

, , API , /API- ( , , ).

Google Stackdriver.

+1

Source: https://habr.com/ru/post/1651114/


All Articles