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 }) }