HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In


In a production environment, you will want to have full control and visibility over the errors that are happening in your application, including those that would originate from an Optimizely SDK.

The Optimizely SDKs provide default implementations of an error handler in the SDKs. Below is an example of using the default error handler from the SDKs:





However, for additional control and visibility into the errors coming from the Optimizely SDK, we recommend implementing your own custom error handler.

With a custom error handler, you can choose what to do with an error, whether it may be as simple as logging the error to console or sending the error to another error monitoring service.

Below is an example of using a custom error handler to log errors to the console: