0
votes

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.

1
Can you further elaborate what you're trying to achieve? Graylog is used server side afaik, are you looking for consolidated log information on the server, i.e. to monitor the SSR server? Commerce Cloud runs Kibana to this.tobi-or-not-tobi
@tobi-or-not-tobi For example I have timer for some action, and if timer expired, I want to log it to the graylog. Timer in some Angular ServiceYuriy Gyerts

1 Answers

1
votes

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.