Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update doc/api/util.md
  • Loading branch information
bmeck authored Jun 12, 2020
commit 926ded7bd654d71d5793dd6c01b04d7c31c87dbe
5 changes: 2 additions & 3 deletions doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,8 @@ added: v0.11.3

* `section` {string} A string identifying the portion of the application for
which the `debuglog` function is being created.
* `callback` {Function} A callback that is called with `null` if the section is
disabled or the logging function if enabled the first time the logging function
is called.
* `callback` {Function} A callback invoked the first time the logging function
Comment thread
jasnell marked this conversation as resolved.
is called with a function argument that is a more optimized logging function.
* Returns: {Function} The logging function

The `util.debuglog()` method is used to create a function that conditionally
Expand Down