socket.io seems to have basically a reasonable logging system for all of its internal elements. How can I get this log object so that I can generate my own log messages at the appropriate levels? It seems to me that my console.log() messages are not tied to the mark, are not aligned and ugly next to socket.io messages. I did a bunch of spelunking in socket.io code, and at the moment I'm not good enough at node to understand what the object hierarchies look like, to find out how to get to the object that I want from my code.
In the long run, I probably will need a more reliable system registration module (with the ability to enter files, automatically rotate, manage levels for each module, custom log levels, etc.). Winston looks reasonable, but can I use socket.io to use it? It would be nice to have everything in one place.
drewww
source share