SensitiveDataLogger<T> SensitiveDataLogger(Of T) Class

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.

Syntax

Declaration

public class SensitiveDataLogger<T> : ISensitiveDataLogger<T>, ILogger<T>, ISensitiveDataLogger, ILoggerPublic 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 Hierarchy

  • System.Object
    System.Object
  • SensitiveDataLogger<T>
    SensitiveDataLogger(Of T)

Inherited Members

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

Constructors summary

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

Properties summary

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

Constructors

  • SensitiveDataLogger(ILogger<T>, 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

      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

    Property Value

    • System.Boolean
      System.Boolean

Details

Assembly

Microsoft.EntityFrameworkCore.dll