1
0
mirror of https://github.com/insomniafi/insomniaid-bot.git synced 2025-11-05 10:39:36 +00:00

Add logger function

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

5
src/functions/logger.ts Normal file
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');
}