Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ change the behavior of the debug logging:
| `DEBUG_DEPTH` | Object inspection depth. |
| `DEBUG_SHOW_HIDDEN` | Shows hidden properties on inspected objects. |

If `DEBUG` is set to an empty value, `debug` treats it the same as disabling all
namespaces and removes `process.env.DEBUG` when it saves that disabled state.
Use a non-empty disabled value such as `DEBUG=,` when other code must still be
able to observe that the environment variable was set.

__Note:__ The environment variables beginning with `DEBUG_` end up being
converted into an Options object that gets used with `%o`/`%O` formatters.
Expand Down