Enable the trace listener in your project

After you create the installer class, you need to reference the custom trace listener in your project, so that you can use it in your site.

NOTE: You need a Raygun API key to run this sample. To acquire a Raygun API key, register in Raugun.io and create a new application on your Raygun.io dashboard.

To enable the custom error trace listener:

  1. Open your Sitefinity CMS application in Visual Studio.
  2. From the context menu of the solution, select Add » Existing project…
  3. Browse to the folder of the custom error trace listener.
  4. Select the ExternalLogging.csproj file.
  5. From the context menu of your project's Reference folder, select Add » References…
  6. Select the newly added ExternalLogging project.
  7. Open the web.config file of your Sitefinity CMS application and configure Raygun by adding a config section and  a RaygunSettings configuration block in the following way:

    NOTE: You can check the Raygun GitHub readme file for additional information about how to configure your application's web.config file.

  8. Save and close the web.config file.
  9. Build your solution.

As a result, your Sitefinity CMS application errors are logged to the Raygun.io dashboard.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?