# Logging Errors

There are two kinds of errors that might occur throughout a Journey:

* **Application Errors** - occur when an error is thrown in the process of going through the application flow.
* **Custom Log Event Errors** - occur when the [Log Custom Event](../actions/log-custom-event-action) Action fires an Error.

Both types of error are automatically logged and made viewable in the [Console](../console/console), under the [Activity Tab](../console/console/console-activity). You can also set up notifiers that alert a configured channel whenever an Application Error and/or a Custom Log Event Error occurs.&#x20;

## Application Errors

Application Errors occur when an error is thrown in the process of going through an application flow. This includes errors thrown by the [Throw](../actions/the-throw-action) Action and the [THROW](../airscript-expressions/error-functions/throw) Airscript function, as well as errors thrown by more accidental means.

## Custom Log Event Errors

Custom Log Event Errors occur when the [Log Custom Event](../actions/log-custom-event-action) Action fires an Error. To configure this, add a Log Custom Event Action to the relevant Action Chain, and configure it so that the **Log Level** value is set to **ERROR**.

Airscript and local variables can be used to define detailed error messages. For instance, say you have a local variable called `text_area`, which is defined by user input. This can be used to define a dynamic **Metadata** field:

![organizing info](https://2599974655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRF6etABDVMr59RdpyGw%2Fuploads%2Fgit-blob-88f7c649876a3814f5696ba9e3bab70f1294a468%2Flogging-errors-v184-0.png?alt=media)

## Configuring Notifiers

Notifiers are used to send alerts whenever an error occurs within an application Journey. Base notifiers are configured in the [Console](../console/console), under the **Logs and App Notifiers** section of the [Settings](../console/console/console-settings) Tab.

To create a new notifier, click on the **Create New** Button in the **App Notifiers** section:

<figure><img src="https://2599974655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRF6etABDVMr59RdpyGw%2Fuploads%2Fgit-blob-97bd5bdd47c1bbd2988fc85806e8caad45135264%2Flogging-errors-v184-1.png?alt=media" alt="" width="400"><figcaption></figcaption></figure>

This will open a new notifier in the Inspector for configuration and creation. Defining where the notifier will send notifications is done under the **Destination** field:

<figure><img src="https://2599974655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRF6etABDVMr59RdpyGw%2Fuploads%2Fgit-blob-0a2f66db455fdfba8961e220572d73042c2ef82c%2Flogging-errors-v184-2.png?alt=media" alt="" width="300"><figcaption></figcaption></figure>

There are three categories of Destination: **Slack**, which sends notifiers to a designated Slack channel, **Email**, which sends notifiers to a designated email address, and **Webhook**, which sends notifiers via `POST` request to a designated request catcher. Selecting a Destination category will reveal the UI to designate the destination details.

> 📘 Enterprise Feature Selecting **Webhook** Destination category requires an **ENTERPRISE** license. If you would like to enable this feature for your Airkit Organization, please contact your Airkit representative or contact [support@airkit.com](mailto:support@airkit.com).

For a more detailed discussion of how to configure notifiers, see [Setting up Email Notifiers](setting-up-email-notifiers) or [Integrating Error Notifiers to Slack](integrating-error-notifications-to-slack).

Once notifier has been created in the Console, it will be available to tie to deployments as part of the publication process. **Configured notifiers can be tied to any number of deployments.**

Notifiers are associated with Application Errors and Custom Log Error Events separately. To tie a notifier to either or both types of error, view the **Notifications and Logs** interface during the publishing process and select the desired notifier from the dropdown menu next to the relevant Notification Event:

<figure><img src="https://2599974655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRF6etABDVMr59RdpyGw%2Fuploads%2Fgit-blob-ee783e4c9aca17da24a1fd43b3d8732719d19e71%2Flogging-errors-v184-3.png?alt=media" alt="" width="400"><figcaption></figcaption></figure>

For more on how to access this interface, see [Publish and Manage Deployments](../building-apps/publishing/publish-and-manage-deployments).
