I just enabled logging using Log4js in my Node.js application. I have used the config option from https://github.com/nomiddlename/log4js-node and it's working fine.
It writes the logs in the log file, as well as in the console. I do not want this to be printed in the console. Not able to figure out how to configure this. awfully sorry to ask this silly question.
Use log4js.clearAppenders()
before adding the appenders you want to use.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With