2013-09-09 07:35:57 +00:00
|
|
|
# crash-reporter
|
2013-08-14 22:43:35 +00:00
|
|
|
|
|
|
|
An example of automatically submitting crash reporters to remote server:
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
crashReporter = require('crash-reporter');
|
2013-11-14 05:39:44 +00:00
|
|
|
crashReporter.start({
|
|
|
|
productName: 'YourName',
|
|
|
|
companyName: 'YourCompany',
|
|
|
|
submitUrl: 'https://your-domain.com/url-to-submit',
|
|
|
|
autoSubmit: true
|
|
|
|
});
|
2013-08-14 22:43:35 +00:00
|
|
|
```
|
|
|
|
|
2013-11-14 05:39:44 +00:00
|
|
|
## crashReporter.start(options)
|
2013-11-13 11:12:13 +00:00
|
|
|
|
2013-11-14 05:39:44 +00:00
|
|
|
* `options` Object
|
|
|
|
* `productName` String
|
|
|
|
* `companyName` String
|
|
|
|
* `submitUrl` String - URL that crash reports would be sent to
|
|
|
|
* `autoSubmit` Boolean - Send the crash report without user interaction
|
|
|
|
* `ignoreSystemCrashHandler` Boolean
|