# 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.

> info **NOTE**: You need a Raygun API key to run this sample. To acquire a Raygun API key, register in [Raugun.io](https://raygun.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:

   ```XML
   <configuration>
     <configSections>
       ...
       <section name="RaygunSettings" type="Mindscape.Raygun4Net.RaygunSettings, Mindscape.Raygun4Net"/>
       ...
     </configSections>
     ...
     <RaygunSettings apikey="YOUR_APP_API_KEY" />
   </configuration>
   ```

   > info      **NOTE**: You can check the [Raygun GitHub readme file](https://github.com/MindscapeHQ/raygun4net/blob/master/README.md) 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](https://raygun.io/) dashboard.
