EN
Node.js - console.log in NodeJS
9 points
In this short article, we would like to answer the question: how to print console logs in NodeJS?
Quick solution (example index.js
file):
xxxxxxxxxx
1
console.log('Some log here ...');
2
console.info('Some info here ...');
3
console.warn('Some warning here ...');
4
console.error('Some error here ...');
Running with:
xxxxxxxxxx
1
node ./index.js
VS Code's Debug Console output: