summary refs log tree commit diff
path: root/v2/logger.ts
diff options
context:
space:
mode:
Diffstat (limited to 'v2/logger.ts')
-rw-r--r--v2/logger.ts24
1 files changed, 24 insertions, 0 deletions
diff --git a/v2/logger.ts b/v2/logger.ts
new file mode 100644
index 0000000..641a406
--- /dev/null
+++ b/v2/logger.ts
@@ -0,0 +1,24 @@
+class Log {
+    time: number = Number(new Date());
+    data: string = "";
+    constructor (data: string, time?: number) {
+        this.data = data;
+        if(time) this.time = time;
+    }
+}
+
+class Logger {
+    logs: Log[] = [];
+
+    constructor () {
+
+    }
+
+    log (data: string) {
+        this.logs.push(new Log(data))
+    }
+
+    dump (): string[] {
+        return this.logs.map(log => ``)
+    }
+}
\ No newline at end of file