Update Writer interface

This commit is contained in:
2024-05-15 20:46:06 +02:00
parent cb9b082285
commit 802bd8e511
+3 -3
View File
@@ -26,9 +26,9 @@ export type WriterOptions = {
}
export abstract class Writer {
protected readonly _options: WriterOptions;
public constructor(options: WriterOptions) {
this._options = options
protected readonly _options: WriterOptions = {
minLevel: Level.INFO,
with_color: false,
}
public log(level: Level, ...data: any[]) : void {