Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Better logging in npm ... use winston #539
I had an interesting idea today: I would love to see my npm logs in Loggly
There are two ways we could accomplish this:
I think that (2) is more amicable for the existing code base since you don't use syslog logging levels. Let me know how I can help out on this one.
Hm. What if npm pulled in some user-specified "onload" script on startup, and then you could just attach the event listener there if you wanted? I'm thinking something like this in npm's load function:
Then, in there, you could do: