BaseAbstractApplicationBuilder<T>.WithLogging Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WithLogging(IIdentityLogger, Boolean) |
Sets the Identity Logger. For details see https://aka.ms/msal-net-logging |
WithLogging(LogCallback, Nullable<LogLevel>, Nullable<Boolean>, Nullable<Boolean>) |
Sets the logging callback. For details see https://aka.ms/msal-net-logging |
WithLogging(IIdentityLogger, Boolean)
Sets the Identity Logger. For details see https://aka.ms/msal-net-logging
public T WithLogging (Microsoft.IdentityModel.Abstractions.IIdentityLogger identityLogger, bool enablePiiLogging = false);
member this.WithLogging : Microsoft.IdentityModel.Abstractions.IIdentityLogger * bool -> 'T
Public Function WithLogging (identityLogger As IIdentityLogger, Optional enablePiiLogging As Boolean = false) As T
Parameters
- identityLogger
- IIdentityLogger
IdentityLogger
- enablePiiLogging
- Boolean
Boolean used to enable/disable logging of
Personally Identifiable Information (PII).
PII logs are never written to default outputs like Console, Logcat or NSLog
Default is set to false
, which ensures that your application is compliant with GDPR.
You can set it to true
for advanced debugging requiring PII
If both WithLogging apis are set, this one will override the other
Returns
The builder to chain the .With methods
Remarks
This is an experimental API. The method signature may change in the future without involving a major version upgrade.
Applies to
WithLogging(LogCallback, Nullable<LogLevel>, Nullable<Boolean>, Nullable<Boolean>)
Sets the logging callback. For details see https://aka.ms/msal-net-logging
public T WithLogging (Microsoft.Identity.Client.LogCallback loggingCallback, Microsoft.Identity.Client.LogLevel? logLevel = default, bool? enablePiiLogging = default, bool? enableDefaultPlatformLogging = default);
member this.WithLogging : Microsoft.Identity.Client.LogCallback * Nullable<Microsoft.Identity.Client.LogLevel> * Nullable<bool> * Nullable<bool> -> 'T
Public Function WithLogging (loggingCallback As LogCallback, Optional logLevel As Nullable(Of LogLevel) = Nothing, Optional enablePiiLogging As Nullable(Of Boolean) = Nothing, Optional enableDefaultPlatformLogging As Nullable(Of Boolean) = Nothing) As T
Parameters
- loggingCallback
- LogCallback
Boolean used to enable/disable logging of
Personally Identifiable Information (PII).
PII logs are never written to default outputs like Console, Logcat or NSLog
Default is set to false
, which ensures that your application is compliant with GDPR.
You can set it to true
for advanced debugging requiring PII
If both WithLogging apis are set, the other one will override the this one
Flag to enable/disable logging to platform defaults.
In Desktop, Event Tracing is used. In iOS, NSLog is used.
In android, Logcat is used. The default value is false
Returns
The builder to chain the .With methods
Exceptions
Applies to
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示