---
title: "How to Send Elmah Exceptions to Retrace"
slug: "error-logging-elmah"
description: "Easily log errors with ELMAH appender by integrating Stackify's libraries. Install via NuGet and configure with your activation key for seamless logging."
updated: 2020-01-07T18:15:11Z
published: 2020-01-07T18:15:11Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackify.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Configure ELMAH

Start logging **errors** using Error Logging Modules and Handlers (ELMAH) appender with minimal changes to your project. Add a few Dynamic-link libraries (DLLs) and add configuration details to the *.config* file specifying an additional (or replacement) appender.

## Getting Started Using NuGet

For NuGet from Visual Studio, integrate the [Stackify ELMAH](https://www.nuget.org/packages/StackifyLib.Elmah/) libraries and configurations. Search Stackify and install Stackify ELMAH Appender.

Or you can install directly from the Package Manager Console using:

```
Install-Package StackifyLib.Elmah
```

## Configuring with NuGet

To complete the NuGet installation, copy your Stackify Activation Key (license key) from your [Retrace Account Info](https://s1.stackify.com/Manage/AccountInfo) page and paste it during installation. Once done, the installation and configuration of the Stackify ELMAH Appender are complete.

## Error Results on Non-Monitored Servers

For error logging from a server that does not have a Stackify monitoring agent, add an **Environment key** to the **appSettings** section of your configuration.

For logging errors in an application that does not appear in the App Stacks page, check error results using the global Error Dashboard page. There will be no App Dashboard for that application if it is not installed on a server that is being monitored.

Here is an example of the settings needed for logging errors from an unmonitored server:

```
<appSettings>
    <add key="Stackify.ApiKey" value="Your Activation Key" />
    <add key="Stackify.AppName" value="Your App Name"/>
    <add key="Stackify.Environment" value="Your Environment"/> <!-- optional - inferred by Stackify if running on a monitored server -->
</appSettings>
```

To indicate a correct setup, you should receive similar logs in Retrace the way it appears on your localhost, as shown below:

![image.png](https://cdn.document360.io/3fcaf473-a1ef-4778-aa2c-fd28411c2b01/Images/Documentation/c76946b4-df87-45f6-842c-41b042c52537.png)

## Troubleshooting

If you are still having trouble getting started, follow our Troubleshoot: Errors and Logs .NET Configurations [guide](https://docs.stackify.com/docs/troubleshoot-errors-and-logs-net-configurations) to address common issues.
