You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to to create multiple loggers by doing
winston.loggers.add('category1', {})
I thought to create new loggers by "new winston.Logger" and then adding them like this:
myNewLogger = new winston.Logger({transport: [...]})
winston.loggers.add('category1', myNewLogger)
but the Logger is changing the transports to an object instead on an array which causes an exception in
container.js line 52: options.transports = existing ? existing.slice() : [];
because an object does not have a slice method
thanks
The text was updated successfully, but these errors were encountered:
Why does winston.loggers.add('category1', {level: "error"}) not work? It treats "level" as transport, but I will use the default transport of main logger.
I am trying to to create multiple loggers by doing
I thought to create new loggers by "new winston.Logger" and then adding them like this:
but the Logger is changing the transports to an object instead on an array which causes an exception in
container.js line 52: options.transports = existing ? existing.slice() : [];
because an object does not have a slice method
thanks
The text was updated successfully, but these errors were encountered: