# Sensitive data

When a validation error is created, you can choose to output the attempted value that failed. The value will be accessible in the `ValidationError.PlaceholderValues` dictionary with the key `Value` when thrown.

Here is an example of how to activate the setting in your API:

```csharp
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
    TypelyOptions.EnableSensitiveDataLogging(env.IsDevelopment()); 
}
```
