Search code examples
spartacus-storefront

Spartacus front-end logging system?


I would like to setup logging system on Spartacus storefront.

Does Spartacus has any default logging system?

For example: Graylog?

For example I have timer for some action, and if timer expired, I want to log it to the graylog. Timer in some Angular Service.


Solution

  • We forked https://github.com/dbfannin/ngx-logger and added an OCC endpoint which the logger can submit logs to. The OCC endpoint logs to a logger that is dedicated to the frontend.