xh / hoist-core

🏗️ The XH Hoist toolkit for Grails
https://xh.io/
Apache License 2.0
6 stars 2 forks source link

Log client-errors on server #381

Open ghsolomon opened 1 month ago

ghsolomon commented 1 month ago

TrackService logs submitted activities on the server in addition to persisting them in the DB; however, ClientErrorService does not.

For TrackService, we log to "$appLogName-track". Consider creating a new "$appLogName-client-error" logger for symmetry.

Whatever approach we take should be careful to avoid confusing reported client-side errors with errors that actually occur on the server-- both in terms of human readability and for external systems that may monitor and parse these logs.