Skip to content

Conversation

@heyitsaamir
Copy link
Collaborator

@heyitsaamir heyitsaamir commented Nov 13, 2025

We have the ability to enable logs, but not the ability to EXCLUDE certain logs.
To enable logs you can simply do LOG=TokenManager and it'll only enable token logger logs and disable all other logs.
But what if you wanted to include all logs, and exclude just some logs.
To enable this, we now have LOG=-<loggerpattern>. This let's us selectively disable certain logs unless explicitly needed.

I used it to disable azure/msal logs which are very noisy. If someone really wants to look at those logs, they may enable them via LOG=*,azure/msal in their environment variables.

In the near future, we should probably use an established package like winston or debug to do our logging.

@heyitsaamir heyitsaamir changed the title Downgrade the log level for MSAL because it's so noisy Add ability to exclude logs Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants