Please work

This commit is contained in:
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

View File

@ -21,10 +21,11 @@ var options = {
}; };
// instantiate a new Winston Logger with the settings defined above // instantiate a new Winston Logger with the settings defined above
var logger = new winston.Logger({ let logger = winston.createLogger({
transports: [ 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 exitOnError: false, // do not exit on handled exceptions
}); });