Add logger function

This commit is contained in:
Christer Warén committed 2024-11-01 03:25:52 +02:00
1 parent cf93a9abf8
commit b6d07eb911
2 files changed
+43 -2

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
export default function logger(area: string, text?: string){
let date = new Date();
console.log('[' + area + '] - ' + date.toISOString());
if(text) console.log(text + '\n');
}