1.6 KiB
1.6 KiB
crash-reporter
An example of automatically submitting crash reporters to remote server:
crashReporter = require('crash-reporter');
crashReporter.start({
productName: 'YourName',
companyName: 'YourCompany',
submitUrl: 'https://your-domain.com/url-to-submit',
autoSubmit: true
});
crashReporter.start(options)
optionsObjectproductNameString, default: Atom-ShellcompanyNameString, default: GitHub, IncsubmitUrlString, default: http://54.249.141.255:1127/post- URL that crash reports would be sent to as POST
autoSubmitBoolean, default: true- Send the crash report without user interaction
ignoreSystemCrashHandlerBoolean, default: falseextraObject- An object you can define which content will be send along with the report.
- Only string properties are send correctly.
- Nested objects are not supported.
crash-reporter payload
The crash reporter will send the following data to the submitUrl as POST:
reptString - eg. atom-shell-crash-serviceverString - The version of atom-shellplatformString - eg. win32process_typeString - eg. browserptimeNumber_versionString - The version inpackage.json_productNameString - The product name in the crashReporteroptionsobjectprodString - Name of the underlying product. In this case Atom-Shell_companyNameString - The company name in the crashReporteroptionsobjectupload_file_minidumpFile - The crashreport as file- All level one properties of the
extraobject in the crashReporteroptionsobject