Right now I put console.log(something)
where I want to see what's happening in those places where I put it. When I see it's fine, I remove it.
How do I better implement logging functionality which I can easily turn on/off, e.g. with a start command line parameter node app.js debug=true
?