Feature request: Add ability to "eject" a set of debug logs #549
Labels
awaiting-response
This issue or pull request is awaiting a user's response
feature
This proposes or provides a feature or enhancement
question
This issue asks a question or requests usage support
The current pattern of explicitly enabling debug logs via the
DEBUG=
environment variable works well for server environments. But when using thedebug
module in a test environment or with a CLI, it is helpful to be able to "eject" a set of debug logs into either a log file or to send them remotely to a bug tracker.A good example of this is how
npm
runs silently (usually), but on failure, it generates anpm-debug.log
file in the working directory with its hidden debug log messages. It would be nice to have this as a built-in feature indebug
rather than implementing it in each individual use case.I could possibly open a PR for this after some discussion around the API/design - if this seems like a feature that you would like to have in
debug
The text was updated successfully, but these errors were encountered: