From 2810ecafcaadce855dd048c2e8488dc7ab1de339 Mon Sep 17 00:00:00 2001 From: jacoobes Date: Sun, 13 Feb 2022 01:36:07 -0600 Subject: [PATCH] starting logger --- src/handler/logger.ts | 16 ++++++++++++++++ src/index.ts | 5 +++++ 2 files changed, 21 insertions(+) create mode 100644 src/handler/logger.ts diff --git a/src/handler/logger.ts b/src/handler/logger.ts new file mode 100644 index 0000000..f90be9d --- /dev/null +++ b/src/handler/logger.ts @@ -0,0 +1,16 @@ + + + +enum sEvent { + GLOBAL_SLASH, + LOCAL_SLASH, + TEXT_CMD, + CRASH, +} + +class Logger { + + public log(e : T, message: string) { + console.log(`[${"ISOSTRING (todo) "}][${sEvent[e]}] :: ${message}`) + } +} \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 78e789f..3a77436 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,3 +4,8 @@ import * as Types from './types/handler'; module.exports = { Sern, Utils, Types }; export { Sern, Utils, Types }; + + +function t () { + +} \ No newline at end of file