Disable colors
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user