I am currently working with nodejs application. We use console.log for server side printing purpose, But here logger.log also used. Both will do the same work, but logger.log isn't able to be used more than once in a function like below
logger.log('check level 1')
logger.log('check level 2')
anybody can help?
logger.logisn't part of node. You're using a library. Read the documentation for that library.