SensitiveDataLogger<T> SensitiveDataLogger(Of T) Class

Definition

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> : ISensitiveDataLogger<T>, ILogger<T>, ISensitiveDataLogger, ILogger
Public Class SensitiveDataLogger(Of T)
    Implements ISensitiveDataLogger(Of T), ILogger(Of T), ISensitiveDataLogger, ILogger
Type Parameters
T

The type who's name is used for the logger category name.

Inheritance
System.ObjectSystem.Object
SensitiveDataLogger<T>SensitiveDataLogger(Of T)
Implements

Inherited Members

System.Object

System.Object.ToString()System.Object.ToString()
System.Object.Equals(System.Object)System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()System.Object.GetHashCode()
System.Object.GetType()System.Object.GetType()
System.Object.MemberwiseClone()System.Object.MemberwiseClone()

Constructors

SensitiveDataLogger(ILogger, IDbContextOptions) SensitiveDataLogger(ILogger(Of T), IDbContextOptions)

Initializes a new instance of the SensitiveDataLogger<T> class.

public SensitiveDataLogger(ILogger<T> logger, IDbContextOptions contextOptions)
Public Sub New(logger As ILogger(Of T), contextOptions As IDbContextOptions)
Parameters
logger
ILogger<T> ILogger(Of T)

The underlying logger to which logging information should be written.

contextOptions
IDbContextOptions IDbContextOptions

The options for the context that this logger is being used with.

Properties

LogSensitiveData LogSensitiveData

Gets a value indicating whether sensitive information should be written to the underlying logger.

public virtual bool LogSensitiveData { get; }
Public Overridable ReadOnly Property LogSensitiveData As Boolean
Value
System.Boolean System.Boolean