jsreport-debug
v2.1.3
Published
jsreport extension collecting and serving logs
Downloads
2,298
Readme
jsreport-debug
jsreport extension collecting and serving logs
Installation
npm install jsreport-debug
Usage
Display logs in jsreport studio
Display logs in the response stream
POST:
/api/reportBODY:
{ "template": { }, "options": { "debug": { "logsToResponse": true } } }
Serve logs in response header
POST:
/api/reportBODY:
{ "template": { }, "options": { "debug": { "logsToResponseHeader": true } } }
The logs are then serverd in response header Debug-Logs
.
Get logs for particular request within node.js
jsreport.render({...}).then(function(response) {
response.logs
})
jsreport-core
var jsreport = require('jsreport-core')()
jsreport.use(require('jsreport-debug')())
License
MIT