winston.Logger was replaced by winston.createLogger

This commit is contained in:
mmcwilliams 2019-02-23 18:05:48 -05:00
parent 478abaae8d
commit 2be63972b2
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ function createLog (label, filename = null) {
if (filename !== null) {
transports.push( new (winston.transports.File)({ label : label, filename : filename }) )
}
return new (winston.Logger)({
return new (winston.createLogger)({
transports: transports
})
}