1
1
import settings from "./settings.ts" ;
2
- import { Logger } from "tslog" ;
3
2
4
- interface IElizaLogger extends Logger < IElizaLogger > {
5
- progress ( message : string ) : void ;
6
- }
7
-
8
- class ElizaLogger implements IElizaLogger {
3
+ class ElizaLogger {
9
4
constructor ( ) {
10
5
// Check if we're in Node.js environment
11
6
this . isNode =
@@ -180,7 +175,6 @@ class ElizaLogger implements IElizaLogger {
180
175
}
181
176
}
182
177
183
- // @ts -expect-error- custom implementation
184
178
log ( ...strings ) {
185
179
this . #logWithStyle( strings , {
186
180
fg : "white" ,
@@ -190,7 +184,6 @@ class ElizaLogger implements IElizaLogger {
190
184
} ) ;
191
185
}
192
186
193
- // @ts -expect-error- custom implementation
194
187
warn ( ...strings ) {
195
188
this . #logWithStyle( strings , {
196
189
fg : "yellow" ,
@@ -200,7 +193,6 @@ class ElizaLogger implements IElizaLogger {
200
193
} ) ;
201
194
}
202
195
203
- // @ts -expect-error- custom implementation
204
196
error ( ...strings ) {
205
197
this . #logWithStyle( strings , {
206
198
fg : "red" ,
@@ -210,7 +202,6 @@ class ElizaLogger implements IElizaLogger {
210
202
} ) ;
211
203
}
212
204
213
- // @ts -expect-error- custom implementation
214
205
info ( ...strings ) {
215
206
this . #logWithStyle( strings , {
216
207
fg : "blue" ,
@@ -220,7 +211,6 @@ class ElizaLogger implements IElizaLogger {
220
211
} ) ;
221
212
}
222
213
223
- // @ts -expect-error- custom implementation
224
214
debug ( ...strings ) {
225
215
if ( ! this . verbose ) return ;
226
216
this . #logWithStyle( strings , {
0 commit comments