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):
console.log('Some log here ...');
console.info('Some info here ...');
console.warn('Some warning here ...');
console.error('Some error here ...');
Running with:
node ./index.js
VS Code's Debug Console output: