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:
5
src/functions/logger.ts
Normal file
5
src/functions/logger.ts
Normal 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');
|
||||
}
|
||||
Reference in New Issue
Block a user