From 3dd1e11763da7bb18d81cbef7642e72e3028167b Mon Sep 17 00:00:00 2001 From: Pascal Perrenoud Date: Thu, 23 May 2024 09:27:36 +0200 Subject: [PATCH] Specify buffer size --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 055e2bb..081ffc1 100644 --- a/index.ts +++ b/index.ts @@ -11,7 +11,7 @@ export class File implements Writer { public constructor(options: WriterOptions & { path: string }) { const {path, ...rest} = options this._options = rest - this.sink = file(path).writer() + this.sink = file(path).writer({ highWaterMark: 128 * 1024 }) } public log(_level: Level, ...data: any[]) : void {