mirror of
https://github.com/sern-handler/handler
synced 2026-06-06 01:16:55 +00:00
starting logger
This commit is contained in:
16
src/handler/logger.ts
Normal file
16
src/handler/logger.ts
Normal 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}`)
|
||||
}
|
||||
}
|
||||
@@ -4,3 +4,8 @@ import * as Types from './types/handler';
|
||||
|
||||
module.exports = { Sern, Utils, Types };
|
||||
export { Sern, Utils, Types };
|
||||
|
||||
|
||||
function t () {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user