SensitiveDataLogger<T>(ILogger<T>, IDbContextOptions) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 SensitiveDataLogger<T> 類別的新執行個體。
public SensitiveDataLogger(Microsoft.Extensions.Logging.ILogger<T> logger, Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions contextOptions);
new Microsoft.EntityFrameworkCore.Infrastructure.SensitiveDataLogger<'T> : Microsoft.Extensions.Logging.ILogger<'T> * Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions -> Microsoft.EntityFrameworkCore.Infrastructure.SensitiveDataLogger<'T>
Public Sub New (logger As ILogger(Of T), contextOptions As IDbContextOptions)
參數
- logger
- ILogger<T>
底層的記錄器,應該將日誌資訊寫入。
- contextOptions
- IDbContextOptions
這些選項針對這個記錄器所使用的情境。