Awesome
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/report<br/>BODY:
<br/>{ "template": { }, "options": { "debug": { "logsToResponse": true } } }
Serve logs in response header
POST:
/api/report<br/>BODY:
<br/>{ "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