winston.Logger was replaced by winston.createLogger
This commit is contained in:
parent
478abaae8d
commit
2be63972b2
|
@ -14,7 +14,7 @@ function createLog (label, filename = null) {
|
||||||
if (filename !== null) {
|
if (filename !== null) {
|
||||||
transports.push( new (winston.transports.File)({ label : label, filename : filename }) )
|
transports.push( new (winston.transports.File)({ label : label, filename : filename }) )
|
||||||
}
|
}
|
||||||
return new (winston.Logger)({
|
return new (winston.createLogger)({
|
||||||
transports: transports
|
transports: transports
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue