Created logger function

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

No files matched your search

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