<PackageReference Include="Microsoft.Identity.Client" Version="4.84.2-preview4-GetManagedIdentityCapabilitiesAsync" />

Microsoft.Identity.Client.LogCallback

public sealed delegate LogCallback : MulticastDelegate
Callback delegate that allows application developers to consume logs, and handle them in a custom manner. This callback is set using WithLogging. If PiiLoggingEnabled is set to true, when registering the callback this method will receive the messages twice: once with the containsPii parameter equals false and the message without PII, and a second time with the containsPii parameter equals to true and the message might contain PII. In some cases (when the message does not contain PII), the message will be the same. For details see https://aka.ms/msal-net-logging
public LogCallback(object object, IntPtr method)

public virtual IAsyncResult BeginInvoke(LogLevel level, string message, bool containsPii, AsyncCallback callback, object object)

public virtual void EndInvoke(IAsyncResult result)

public virtual void Invoke(LogLevel level, string message, bool containsPii)