- Notifications
You must be signed in to change notification settings - Fork90
Verbose output
Lloyd Brookes edited this pageJun 23, 2019 ·5 revisions
Setting the--verbose flag outputs a highly verbose JSON stream containing debug information. It is intended to aid debugging and to provide a datasource for custom views.
Anymiddleware module can send information to the verbose stream with this line (wherekey is a identifying string e.g.middleware.example.config andvalue is the information to send).
this.emit('verbose',key,value)
You may hand-pick the keys to display in the verbose stream using--verbose.include and--verbose.exclude. Each option implies--verbose and accepts one or more regular expressions.
This command outputs only information regarding therewrite middleware.
$ ws --verbose.include rewriteInclude onlyrequest andresponse info.
ws --verbose.include request responsePrint everything exceptsocket andmiddleware information.
$ ws --verbose.exclude socket middleware