Specify buffer size

This commit is contained in:
2024-05-23 09:27:36 +02:00
parent d1b5cbe4ce
commit 3dd1e11763
+1 -1
View File
@@ -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 {