[Bug]: on
not working (or at least not as expected or misleading documentation)
#2109
Labels
on
not working (or at least not as expected or misleading documentation)
#2109
🔎 Search Terms
on error
The problem
logger.on
event callbacks are not firedThis example can be found in the
README.md
(.on("error")
)I read some of winston's code base and found out that Logger ultimately derives from streams, which are known to be event emitters. Perhaps .on("error") is not when a logger is called with an error, but when there is an internal stream error
Nonetheless, either the code is wrong or the documentation is misleading
What version of Winston presents the issue?
3.7.2
What version of Node are you using?
v16.13.1
If this worked in a previous version of Winston, which was it?
No response
Minimum Working Example
Additional information
No response
The text was updated successfully, but these errors were encountered: