Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    jsreport-debugpublic

    jsreport-debug

    NPM Version Build Status

    jsreport extension collecting and serving logs

    Installation

    npm install jsreport-debug

    Usage

    Display logs in jsreport studio

    debug

    Display logs in the response stream

    POST: /api/report
    BODY:

      { 
         "template": { },    
         "options": { "debug": { "logsToResponse": true } }
      } 

    Serve logs in response header

    POST: /api/report
    BODY:

      { 
         "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

    Keywords

    install

    npm i jsreport-debug

    Downloadslast 7 days

    830

    version

    1.1.0

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar
    • avatar