How to use the @sentry/electron.addBreadcrumb function in @sentry/electron

To help you get started, we’ve selected a few @sentry/electron examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SelfKeyFoundation / Identity-Wallet / src / common / logger / logger.js View on Github external
sentryLog(level, originalMsg, data, message) {
		addBreadcrumb({
			level,
			message,
			data,
			category: `${this.processName}:${this.name}`
		});
		if (originalMsg instanceof Error) {
			captureException(originalMsg);
		}
	}