'How to disable Winston logger's console.log() captures on local machine only for debugging purposes

I have join a new company that seems to be a bit dogmatic on logger usage.

I understand decent use cases for a logger, but the old good console.log() is just more handy for day-to-day debugging and development.

Therefore I am looking for a way to disable it on my machine only, without impacting my team's choice.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source