From 14a9a6fa8d65b178437371c7414fd8dbe133c778 Mon Sep 17 00:00:00 2001 From: Pascal Perrenoud Date: Mon, 3 Jun 2024 16:41:18 +0200 Subject: [PATCH] Disable colors --- index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.ts b/index.ts index 4597669..5beec0d 100644 --- a/index.ts +++ b/index.ts @@ -9,9 +9,9 @@ export class File implements Writer { private readonly sink: FileSink; readonly _options: WriterOptions; - public constructor(options: WriterOptions & { path: string }) { - const {path, ...rest} = options - this._options = rest + public constructor(options: { minLevel: Level, path: string }) { + const {path, minLevel} = options + this._options = {minLevel, with_color: false} this.sink = file(path).writer({ highWaterMark: 128 * 1024 }) }