jsreport extension collecting and serving logs
npm install jsreport-debug
POST:
/api/report
BODY:
{ "template": { }, "options": { "debug": { "logsToResponse": true } } }
POST:
/api/report
BODY:
{ "template": { }, "options": { "debug": { "logsToResponseHeader": true } } }
The logs are then serverd in response header Debug-Logs
.
jsreport.render({...}).then(function(response) {
response.logs
})
var jsreport = require('jsreport-core')()
jsreport.use(require('jsreport-debug')())
MIT