CoreLoggerExtensions.SensitiveDataLoggingEnabledWarning<TLoggerCategory> 方法

定义

public static void SensitiveDataLoggingEnabledWarning<TLoggerCategory> (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<TLoggerCategory> diagnostics) where TLoggerCategory : Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<TLoggerCategory>, new();
static member SensitiveDataLoggingEnabledWarning : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<'LoggerCategory (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))> -> unit (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))
<Extension()>
Public Sub SensitiveDataLoggingEnabledWarning(Of TLoggerCategory As {LoggerCategory(Of TLoggerCategory)New}) (diagnostics As IDiagnosticsLogger(Of TLoggerCategory))

类型参数

TLoggerCategory

要记录其警告的记录器类别。

参数

diagnostics
IDiagnosticsLogger<TLoggerCategory>

要使用的诊断记录器。

适用于