Updated logger function

This commit is contained in:
Christer Warén 2021-09-02 14:40:26 +03:00
parent eba7551329
commit 45bd690c05

View File

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