Please work

pull/1/head
Esther 2020-06-22 21:52:15 +01:00
parent 041377a977
commit a2d1ab36d3
No known key found for this signature in database
GPG Key ID: 162A307C5EBD40EA
1 changed files with 4 additions and 3 deletions

View File

@ -21,10 +21,11 @@ var options = {
};
// instantiate a new Winston Logger with the settings defined above
var logger = new winston.Logger({
let logger = winston.createLogger({
transports: [
new winston.transports.File(options.file),
new winston.transports.Console(options.console)
new (winston.transports.Console)(options.console),
new (winston.transports.File)(options.errorFile),
new (winston.transports.File)(options.file)
],
exitOnError: false, // do not exit on handled exceptions
});