Update logger function

This commit is contained in:
Christer Warén committed 2021-09-11 18:03:27 +03:00
1 parent bfec178de7
commit a043cde46e
1 file changed
+1 -1
+1 -1
View File
@@ -1,4 +1,4 @@
module.exports = function (area, text){
module.exports = function logger(area, text){
let date = new Date();
console.log('[' + area + '] – ' + date.toISOString());
if(text) console.log(text + '\n');