File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import type { Component } from '../../structures/Component';
7
7
import type { Listener } from '../../structures/Listener' ;
8
8
import type { Plugin } from '../../structures/Plugin' ;
9
9
import type { Awaitable } from 'discord.js' ;
10
+ import EventEmitter from 'node:events' ;
10
11
11
12
export enum Events {
12
13
'HANDLER_RUN' = 'handlerRun' ,
@@ -90,7 +91,7 @@ export const enum LogLevel {
90
91
91
92
export type LogMethods = 'trace' | 'debug' | 'info' | 'time' | 'warn' | 'timeEnd' | 'error' ;
92
93
93
- export class ILogger {
94
+ export class ILogger extends EventEmitter {
94
95
TRACE : LogLevel . TRACE ;
95
96
DEBUG : LogLevel . DEBUG ;
96
97
INFO : LogLevel . INFO ;
@@ -101,6 +102,8 @@ export class ILogger {
101
102
level : LogLevel = LogLevel . TRACE ;
102
103
103
104
constructor ( ) {
105
+ super ( ) ;
106
+
104
107
this . TRACE = LogLevel . TRACE ;
105
108
this . DEBUG = LogLevel . DEBUG ;
106
109
this . INFO = LogLevel . INFO ;
You can’t perform that action at this time.
0 commit comments