News for hackers. Stuff that matters.
Re:Do Not Log by jaredsohn on Wednesday January 05, 2022 @11:43AM (#29811282)
>Except now you’re tied to Sentry. Want some other service? Good luck.

If this is a concern, just create a class with a method that takes an exception, message, context, etc. as parameters and use that. Now you can change it in one place instead of throughout your codebase.

Agree on logging messages as well; is useful to see live what is happening in the system as well as it is useful to see logging broken up by different errors

There are no comments on this comment yet.