diff --git a/lib/appenders/file.js b/lib/appenders/file.js index 9b00326f..f2c194b4 100644 --- a/lib/appenders/file.js +++ b/lib/appenders/file.js @@ -58,7 +58,7 @@ function fileAppender(file, layout, logSize, numBackups, options, timezoneOffset const regex = /\x1b[[0-9;]*m/g; loggingEvent.data = loggingEvent.data.map(d => { if (typeof d === 'string') return d.replace(regex, '') - else return d + return d }) } if (!writer.write(layout(loggingEvent, timezoneOffset) + eol, "utf8")) {