diff options
Diffstat (limited to 'log/handlers.ts')
| -rw-r--r-- | log/handlers.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/log/handlers.ts b/log/handlers.ts index bb684bdef..c39102c8e 100644 --- a/log/handlers.ts +++ b/log/handlers.ts @@ -32,7 +32,7 @@ export class BaseHandler { if (this.formatter instanceof Function) { return this.formatter(logRecord); } - + return this.formatter.replace(/{(\S+)}/g, (match, p1) => { const value = logRecord[p1]; @@ -73,10 +73,7 @@ export class FileHandler extends WriterHandler { private _file: File; private _filename: string; - constructor( - levelName: string, - options: FileHandlerOptions, - ) { + constructor(levelName: string, options: FileHandlerOptions) { super(levelName, options); this._filename = options.filename; } |
