Disable colors

This commit is contained in:
Pascal Perrenoud
2024-06-03 16:41:18 +02:00
parent 6951cabdc5
commit 14a9a6fa8d
+3 -3
View File
@@ -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 })
}