You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my company, whenever an error occurs whether by User or by System, we generally log those with level "Error". User error meaning like we are logging error when input with wrong otp code, some validation issues, product order failed etc. sort of things. And system errors are like DB query failed, connection error, PHP errors etc.
Now it becomes problem when searching on a huge log to find which ones are system error & which ones are user action based error. We for our easiness have add to context "is_system_error": true/false & it does the job.
I just want to know if there is any community approved way or any standard out there what is being followed. Also is it acceptable to use "Warn" level as User action failures.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In my company, whenever an error occurs whether by User or by System, we generally log those with level "Error". User error meaning like we are logging error when input with wrong otp code, some validation issues, product order failed etc. sort of things. And system errors are like DB query failed, connection error, PHP errors etc.
Now it becomes problem when searching on a huge log to find which ones are system error & which ones are user action based error. We for our easiness have add to context
"is_system_error": true/false
& it does the job.I just want to know if there is any community approved way or any standard out there what is being followed. Also is it acceptable to use "Warn" level as User action failures.
Thank you.
Note: Same discussion create at Laravel.io
Beta Was this translation helpful? Give feedback.
All reactions