What if we have a single logger service and check the environmnt?
Can you please elaborate?
For number 1. We don't want to log in our console in production. We can create a singleton service and check the environment before logging. By this we followed SRP too..
Nice one. Can you please write an article on it. Or maybe I'll do it when I'm done curating the other articles on my list 😃
I'd love to, but am so busy these days... I'm sure you'll write a good one until i want to start :)))
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What if we have a single logger service and check the environmnt?
Can you please elaborate?
For number 1. We don't want to log in our console in production. We can create a singleton service and check the environment before logging. By this we followed SRP too..
Nice one. Can you please write an article on it. Or maybe I'll do it when I'm done curating the other articles on my list 😃
I'd love to, but am so busy these days... I'm sure you'll write a good one until i want to start :)))