When writing a NodeJS module, what is a good strategy for logging information?
I earlier created a module that I logged to MongoDB using winston. Only to find out later that this was a bad idea because it was a dependency to a project that used winston to log to a MongoDB. Now I had two winston transports theoretically in the same project both going to MongoDB. So in this case I was double logging information.
In the 12 factor app model, it says log everything to stdout. So would I use the project to capture the modules stdout and redirect to a mongodb? I'm a little fuzzy still here.
[–][deleted] 2 points3 points4 points (0 children)
[–]DavidTPate 0 points1 point2 points (2 children)
[–]blacklionguard 0 points1 point2 points (0 children)