Hacker News new | ask | show | jobs
by valuearb 2185 days ago
I agree with pretty much all of this except:

> Don’t keep “Logs” (similar to print) when building for production!

Not logging in production code is a recipe for not being able to fix some key user problems. Remote logging is mandatory for a high quality app.

1 comments

Similarly, logging too much makes logs meaningless. Purpose-based specific log platforms can be useful, like, stack traces go to sentry, tracing goes to jaeger, stdout for global context stuff, etc. All of these going in one stream makes it almost as useless as no logs.
I disagree. If you have too much, you can always filter. If you have too little, you're blind.