js-error-logger

0.2.6 • Public • Published

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

Dependents (0)

Package Sidebar

Install

npm i js-error-logger

Weekly Downloads

0

Version

0.2.6

License

MIT

Last publish

Collaborators

  • ivc-user