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
When I use Console transport, I know that I can add a listener like this:
logger.on('logging', (transport, level, msg, meta) => use the logged data....
But how can I log to memory and listen to it?
I'm basically looking for a solution to listen to logs without having them written in the console/file/sent over HTTP.
Cheers.
The text was updated successfully, but these errors were encountered:
For winston@3 users: winston.transports.Memory has been removed – use winston.transports.Stream instead with any buffered stream implementation.
Historically from a winston < 3 perspective winston.transports.Memory was used for unit testing purposes. It was removed in winston@3 since streams are capable of handling back pressure. Please consider upgrading & thanks for using winston!
When I use Console transport, I know that I can add a listener like this:
logger.on('logging', (transport, level, msg, meta) => use the logged data....
But how can I log to memory and listen to it?
I'm basically looking for a solution to listen to logs without having them written in the console/file/sent over HTTP.
Cheers.
The text was updated successfully, but these errors were encountered: