We use the loglevel package on the front end for doing logging within the client. This package has the option of a couple of plugins that allow the log messages to be forwarded to a log server.
Add an API endpoint on the backend to act as a log server for client side logs, and send the logs from client->server.
We can write these logs either to a DB table, or to a file. Logging client logs to console is not a good idea as we don't want to pollute them.
We use the
loglevelpackage on the front end for doing logging within the client. This package has the option of a couple of plugins that allow the log messages to be forwarded to a log server.Add an API endpoint on the backend to act as a log server for client side logs, and send the logs from client->server.
We can write these logs either to a DB table, or to a file. Logging client logs to console is not a good idea as we don't want to pollute them.