@@ -282,22 +282,24 @@ More screenshots in the `screenshots` folder.
282
282
283
283
```ts
284
284
interface fileLoggerOptions {
285
- rotate?: boolean; // cut by day
286
- maxBytes?: number, // the maximum size in bytes that the log file can grow to before rolling over to a new one
287
- maxBackupCount?: number // maxBackupCount must work with maxBytes
285
+ rotate?: boolean; // cut by day
286
+ maxBytes?: number; // the maximum size in bytes that the log file can grow to before rolling over to a new one
287
+ maxBackupCount?: number; // maxBackupCount must work with maxBytes
288
288
}
289
289
290
290
interface LoggerInerface {
291
- constructor()
291
+ constructor();
292
292
293
- info(...args: unknown[]): void
294
- warn(...args: unknown[]): void
295
- error(...args: unknown[]): void
293
+ debug(...args: unknown[]): void;
294
+ info(...args: unknown[]): void;
295
+ log(...args: unknown[]): void;
296
+ warn(...args: unknown[]): void;
297
+ error(...args: unknown[]): void;
296
298
297
- async initFileLogger(dir: string, options: fileLoggerOptions = {}): Promise<void>
299
+ initFileLogger(dir: string, options: fileLoggerOptions = {}): Promise<void>;
298
300
299
- disableConsole(): void
300
- enableConsole(): void
301
+ disableConsole(): void;
302
+ enableConsole(): void;
301
303
302
304
disableFile(): void;
303
305
enableFile(): void;
@@ -307,6 +309,12 @@ interface LoggerInerface {
307
309
}
308
310
```
309
311
312
+ ## Contributors
313
+
314
+ <a href="https://github.com/deno-library/logger/graphs/contributors">
315
+ <img src="https://contrib.rocks/image?repo=deno-library/logger" />
316
+ </a>
317
+ Thanks for their contributions!
310
318
* @module
311
319
*/
312
320
0 commit comments