Created logger function

This commit is contained in:
Christer Warén
2021-08-22 20:47:40 +03:00
parent 7810f6fff8
commit b03c6fd3b0
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,4 @@
module.exports = function (area, text){
let date = new Date();
console.log('[' + area + '](' + date.toISOString() + ') ' + text);
}