Debug log implementation pollutes other packages' output #366
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Many npm packages that provide debug logging do so with a package like debug. In the case of
debug
, packages namespace their logs so you can pinpoint where debug logs are output from.Unfortunately, the way secret-agent uses the
DEBUG
environment variable, it will output some overkill logs even when I namespaced to another package (e.g.DEBUG=my-package
).It would be nice if the log output wasn't just a truthy on the
DEBUG
, but instead was namespaced (e.g.DEBUG=secret-agent
orDEBUG=secret-agent:error
). For bonus points, it could even look for its namespace in an advanced value likeDEBUG=connect:bodyParser,connect:compress,connect:session,secret-agent
The text was updated successfully, but these errors were encountered: