我正在使用IdentityServer3(版本2.3.0.0)和企業庫進行日誌記錄。 目前,我已日誌選項設置如下在IdentityServer3中禁用信息日誌記錄
var options = new IdentityServerOptions
{
LoggingOptions = new LoggingOptions()
{
EnableHttpLogging = false,
EnableKatanaLogging = false,
EnableWebApiDiagnostics = false,
WebApiDiagnosticsIsVerbose = false
},
EventsOptions = new EventsOptions()
{
RaiseErrorEvents = true,
RaiseFailureEvents = true,
RaiseInformationEvents = false,
RaiseSuccessEvents = false
}
}
上面的配置不會禁用以下條目
Returning token response.
End token request
Creating JWT access token
Setting a sliding lifetime: 29100
Creating refresh token
Creating access token
Processing token request
Creating token response
Start password token request validation
Start token request validation
Client validation success
Secret validator success: HashedSharedSecretValidator
Secret id found: JSApp
Parser found secret: PostBodySecretParser
Start parsing for secret in post body
X.509 certificate not found.
Start parsing for X.509 certificate
Start client validation
Start token request
CorsPolicyService allowed origin
的記錄如何禁用上述記錄,只是只允許錯誤日誌條目?
您的日誌記錄框架應該具有這些過濾功能。 –