Enable Sensitive Data Logging in .Net Core

if (env.IsDevelopment())
{
    options.EnableSensitiveDataLogging();
    options.EnableDetailedErrors();
}