Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSAL logging improvements #3028

Closed
7 of 10 tasks
bgavrilMS opened this issue Nov 18, 2021 · 8 comments
Closed
7 of 10 tasks

MSAL logging improvements #3028

bgavrilMS opened this issue Nov 18, 2021 · 8 comments

Comments

@bgavrilMS
Copy link
Member

bgavrilMS commented Nov 18, 2021

Discussed in https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/discussions/3010

Originally posted by bgavrilMS November 12, 2021
Suggested improvements that can be made to MSAL logging:

Common log interface for MSAL/SAL/Wilson/MISE

Apps should not have to recompile to get verbose logs

Better logging in token caches

Logging perf

  • Logging should not compute log strings unless the log level is met.

Add more info in the logs

Additional discussion around logging: #1993

@bgavrilMS bgavrilMS added this to Triage in MSAL.NET (legacy) via automation Nov 18, 2021
@bgavrilMS bgavrilMS added this to the 4.39.0 milestone Nov 18, 2021
@pmaytak pmaytak modified the milestones: 4.39.0, 4.40.0 Nov 29, 2021
@bgavrilMS bgavrilMS moved this from Triage to Estimated/Committed in MSAL.NET (legacy) Dec 3, 2021
@bgavrilMS bgavrilMS moved this from Estimated/Committed to Blocked/Waiting for reply in MSAL.NET (legacy) Jan 4, 2022
@bgavrilMS bgavrilMS moved this from Blocked/Waiting for reply to Estimated/Committed in MSAL.NET (legacy) Jan 6, 2022
@bgavrilMS bgavrilMS modified the milestones: 4.40.0, 4.41.0 Jan 10, 2022
@bgavrilMS bgavrilMS moved this from Estimated/Committed to Triage in MSAL.NET (legacy) Jan 25, 2022
@bgavrilMS bgavrilMS moved this from Triage to Estimated/Committed in MSAL.NET (legacy) Jan 25, 2022
@bgavrilMS
Copy link
Member Author

bgavrilMS commented Jan 27, 2022

This quarter we want to do only:

  • token cache logic uses MSAL loggers
  • allow apps to change log level dynamically (i.e. .WithLogging(Func<LogLevel>, ...) )

@jmprieur
Copy link
Contributor

@bgavrilMS dynamically? you mean on AcquireTokenXXBuilder?

@bgavrilMS
Copy link
Member Author

bgavrilMS commented Jan 28, 2022

no, I mean:

private static LogLevel _logLevel = LogLevel.Warning;

private IConfidentialClientApplicaiton CreateCCA()
{
        var cca = ConfidentialClientApplicationBuidler.Create(id).
                     .WithLogging(
                              () =>_logLevel , 
                              LogCallback);
}

// apps monitor config or env changes
private void OnConfigChange()
{
    _logLevel = // read log level from config
}

@gladjohn gladjohn modified the milestones: 4.41.0, 4.42.0 Feb 8, 2022
@bgavrilMS bgavrilMS modified the milestones: 4.42.0, 4.43 Feb 28, 2022
@trwalke trwalke moved this from Estimated/Committed to In Progress in MSAL.NET (legacy) Mar 8, 2022
@trwalke trwalke self-assigned this Mar 8, 2022
@trwalke
Copy link
Member

trwalke commented Mar 23, 2022

updating details with #3245

@bgavrilMS bgavrilMS moved this from In Progress to Blocked/Waiting for reply in MSAL.NET (legacy) Mar 28, 2022
@pmaytak pmaytak moved this from Blocked/Waiting for reply to In Progress in MSAL.NET (legacy) Apr 1, 2022
@pmaytak pmaytak removed this from the 4.43.0 milestone Apr 4, 2022
@pmaytak pmaytak added this to the 4.44.0 milestone Apr 4, 2022
@trwalke trwalke moved this from In Progress to Blocked/Waiting for reply in MSAL.NET (legacy) Apr 12, 2022
@bgavrilMS bgavrilMS moved this from Blocked/Waiting for reply to In Progress in MSAL.NET (legacy) Apr 19, 2022
@trwalke trwalke moved this from In Progress to Blocked/Waiting for reply in MSAL.NET (legacy) Apr 28, 2022
@trwalke trwalke moved this from Blocked/Waiting for reply to In Progress in MSAL.NET (legacy) May 2, 2022
@trwalke trwalke moved this from In Progress to Triage in MSAL.NET (legacy) May 5, 2022
@trwalke trwalke moved this from Triage to Blocked/Waiting for reply in MSAL.NET (legacy) May 5, 2022
@pmaytak pmaytak modified the milestones: 4.44.0, 4.45.0 May 19, 2022
@pmaytak pmaytak moved this from Blocked/Waiting for reply to Estimated/Committed in MSAL.NET (legacy) May 19, 2022
@trwalke trwalke moved this from Estimated/Committed to In Progress in MSAL.NET (legacy) May 26, 2022
@trwalke trwalke moved this from In Progress to Fixed in MSAL.NET (legacy) Jun 20, 2022
@trwalke trwalke closed this as completed Jun 20, 2022
@bgavrilMS
Copy link
Member Author

This has not been completed.

@bgavrilMS bgavrilMS reopened this Jul 21, 2022
@trwalke
Copy link
Member

trwalke commented Jul 21, 2022

@bgavrilMS yeah, not sure how this got closed. Must a bug somewhere.

@pmaytak pmaytak modified the milestones: 4.45.0, 4.46.0 Jul 22, 2022
@bgavrilMS
Copy link
Member Author

Tracking item for logging improvements.

@bgavrilMS
Copy link
Member Author

T

@pmaytak pmaytak removed this from the Future Minor Version milestone Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

5 participants