Log all events emitted by a Node.js EventEmitter object.
npm install event-debug
Example HTTP server where we log all event emitted by the server:
var http =var eventDebug =var server = http// use custom logging prefix 'MyServer'server
When running this server and sending an HTTP request to it, the following output will be produced (the lines written by event-debug are all written to STDERR):