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

    js-error-loggerpublic

    JS Logger

    This contains both the front end hooks and the back end server code for catching and saving javascript errors

    #  Jira Example
    #  
    #  {
    #      "name": "jira",
    #      "excludedTypes": ["doubleping", "jsevent"],
    #      "config": {
    #        "jiraItemMap": {
    #          "frontEndField": "jiraFieldName"
    #        },
    #        "requestOptions": {
    #          "uri": "http://jira.somesystem.local/rest/api/2/issue/",
    #          "auth": {
    #            "user": "user@yahoo.com",
    #            "pass": "Tes123"
    #          },
    #          "method": "POST"
    #        },
    #        "requestData": {
    #          "fields": {
    #            "project": {
    #              "key": "MYPROJECT"
    #            }
    #          }
    #        } 
    #      }
    #    }
          {
            "name": "emailer",
            "excludedTypes": ["doubleping", "jsevent"],
            "config": {
              "mailOptions": {
                "from": "system@yahoo.com",
                "to": "system@yahoo.com",
                "subject": "Javascript Error"
              }
            }
          }
     

    Some other configs of interest:

    tmpFileLocation - image save base directory

    Keywords

    none

    install

    npm i js-error-logger

    Downloadslast 7 days

    21

    version

    0.2.6

    license

    MIT

    repository

    bitbucket.org

    last publish

    collaborators

    • avatar