starting logger

This commit is contained in:
jacoobes
2022-02-13 01:36:07 -06:00
parent dfb34b99e3
commit 2810ecafca
2 changed files with 21 additions and 0 deletions

16
src/handler/logger.ts Normal file
View File

@@ -0,0 +1,16 @@
enum sEvent {
GLOBAL_SLASH,
LOCAL_SLASH,
TEXT_CMD,
CRASH,
}
class Logger {
public log<T extends sEvent>(e : T, message: string) {
console.log(`[${"ISOSTRING (todo) "}][${sEvent[e]}] :: ${message}`)
}
}

View File

@@ -4,3 +4,8 @@ import * as Types from './types/handler';
module.exports = { Sern, Utils, Types };
export { Sern, Utils, Types };
function t () {
}