> For the complete documentation index, see [llms.txt](https://vostok.gitbook.io/configuration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vostok.gitbook.io/configuration/basic-scenarios/log-errors.md).

# Log errors

**Requires**: [logging module](/configuration/modules/logging.md).

See [error handling](/configuration/concepts-and-basics/error-handling.md) for cases where this logging is useful.

See [logging documentation](https://vostok.gitbook.io/logging/) for the log interface required here.&#x20;

```
var providerSettings = new ConfigurationProviderSettings();

providerSettings = providerSettings.WithErrorLogging(log);

var provider = new ConfigurationProvider(providerSettings);
```

{% hint style="info" %}
Secret settings should be [marked with an attribute](/configuration/basic-scenarios/make-settings-secret.md) to avoid being logged.
{% endhint %}
