SensitiveDataLogger<T> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A wrapping logger for which logging of sensitive data can be enabled or disabled.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
public class SensitiveDataLogger<T> : Microsoft.EntityFrameworkCore.Infrastructure.ISensitiveDataLogger<T>, Microsoft.Extensions.Logging.ILogger<T>
type SensitiveDataLogger<'T> = class
interface ISensitiveDataLogger<'T>
interface ILogger<'T>
interface ILogger
interface ISensitiveDataLogger
Public Class SensitiveDataLogger(Of T)
Implements ILogger(Of T), ISensitiveDataLogger(Of T)
Type Parameters
- T
The type who's name is used for the logger category name.
- Inheritance
-
SensitiveDataLogger<T>
- Implements
Constructors
SensitiveDataLogger<T>(ILogger<T>, IDbContextOptions) |
Initializes a new instance of the SensitiveDataLogger<T> class. |
Properties
LogSensitiveData |
Gets a value indicating whether sensitive information should be written to the underlying logger. |
Explicit Interface Implementations
ILogger.BeginScope<TState>(TState) | |
ILogger.IsEnabled(LogLevel) | |
ILogger.Log<TState>(LogLevel, EventId, TState, Exception, Func<TState,Exception,String>) |
Applies to
Entity Framework