mirror of
https://github.com/insomniafi/insomniaid-bot.git
synced 2026-11-17 14:52:38 +00:00
Add logger function
This commit is contained in:
1 parent
cf93a9abf8
commit
b6d07eb911
2 files changed
+43
-2
No files matched your search
@@ -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