I am a Senior Developer at a firm for over 2 years. In almost all of our systems, I see 0 logging.

Every time a bug is pointed out in the public Slack channel, devs have to go through the code and try to reproduce the problem again by hand.

Come to think of it, It surely is a waste of time because the log statements or debugger breakpoints that you use while debugging might as well be there in production as well.

Perhaps, that’s what medium to large scale enterprise startups and companies follow as well.

Is there a better approach to tackling this? What do you do at your company as far as logging in code is concerned?

submitted by /u/displayflex
[link] [comments]