Skip to content
Lloyd Brookes edited this page Jul 13, 2017 · 5 revisions

Setting the --verbose flag outputs a highly verbose JSON stream containing debug information. It is intended to aid debugging and as a datasource for custom views.

Any custom server, middleware, mock response or websocket module can send information to the verbose stream with this line (where key is a identifying string e.g. middleware.example.config and value is the information to send).

this.emit('verbose', key, value)
Clone this wiki locally