> For the complete documentation index, see [llms.txt](https://docs.appkickstarter.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.appkickstarter.com/features/application-monitoring.md).

# Application monitoring

On debug Sentry is not initialized.&#x20;

On release Sentry is initialized in `AppInitializer#initialize` function.

### Initialization

The initialize function is based on `SENTRY_DSN` which is created via BuildKonfig. The secret `DSN` is retrived from the `local.properties` file in `build.gradle`.

Learn more about secrets and BuildKonfig [here](/tech-things/secrets-and-build-config.md).

All you need to do is write the `DSN` of your app in `local.properties` file. You can get this on your Sentry dashboard when you create your project:&#x20;

```
# Sentry
sentry_dsn=
```

### Error logging

On release we use SentryAntilog instead of DebugAntilog and this enables the project to  `captureException` when log level is `ERROR`.

You can find this code on `NapierLogger.kt` file.
