react-logging-error-boundary
An error boundary component which sends your logs to Sentry and Loggly.
Usage
{ return <div className="App"> <LoggingErrorBoundary logService= sentry: dsn: "your sentry dsn" loggly: logglyKey: "your loggly key" errorComponent=<ErrorPage /> > <GivesError /> </LoggingErrorBoundary> </div> } ReactDOM
Properties
Property | Type | Required | Description |
---|---|---|---|
logService |
object | no | object that contains your sentry and/or loggly configs |
errorComponent |
component | yes | If something is broken users will see this instead of red box |