<PackageReference Include="Microsoft.Identity.Client" Version="4.84.1" />

Microsoft.Identity.Client.Internal.Logger.LoggerHelper

class LoggerHelper
public static ILoggerAdapter NullLogger { get; }

public LoggerHelper()

public static ILoggerAdapter CreateLogger(Guid correlationId, ApplicationConfiguration config)

public static string FormatLogMessage(string message, bool piiEnabled, string correlationId, string clientInformation)

public static string GetClientInfo(string clientName, string clientVersion)

public static EventLogLevel GetEventLogLevel(LogLevel logLevel)

public static string GetMessageToLog(string messageWithPii, string messageScrubbed, bool piiLoggingEnabled)

public static DurationLogHelper LogBlockDuration(ILoggerAdapter logger, string measuredBlockName, LogLevel logLevel = 3)

public static DurationLogHelper LogMethodDuration(ILoggerAdapter logger, LogLevel logLevel = 3, string methodName = null, string filePath = null)