Dev #5
|
@ -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