# Create and enable a custom trace listener

This tutorial demonstrates how to create a custom trace listener which can log errors to external application, such as [Raygun](https://raygun.io/).

> success **GITHUB EXAMPLE**: You can find a full code sample for the custom trace listener in Sitefinity CMS GitHub repository » [External logging project](http://github.com/Sitefinity/external-logging).

> info **PREREQUISITES**:
>
> * Acquire a Raygun API key by registering on [Raygun's website](https://raygun.io/).
> * Create a new application on your Raygun dashboard.
