I'm building a library. Is there a logger that can be configured by the user?
For those that know Java, I'm basically asking if slf4j exists in node.
For those that don't know Java, I'm building a library that needs to output logs to:
1. Give me enough information to troubleshoot issues when apps use it. 2. Give users enough information to troubleshoot when they use it.
I don't want to always print these logs. Logging should be configurable by the user. I don't want to write my own logging library to achieve this. Is there a node.js logging package that can be configured externally?
PS: I've looked at node.js logger top 10 lists, and I didn't see any that touted this as a feature.