Skip to content

Add config option for log level #2391

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

Closed
wants to merge 1 commit into from

Conversation

GregoryComer
Copy link
Member

Summary:
Add a buck config option to set the ExecuTorch log level. Used as follows:

buck2 run ... -c executorch.log_level=[level]

Where [level] is one of Debug, Info, Error, or Fatal (case-in-sensitive).

Log methods are refactored into a separate bazel file to facilitate re-use. I need to override the XNNPACK log level when ET log level is set to Debug, and I don't want to duplicate the log level parsing logic.

Differential Revision: D54800053

Copy link

pytorch-bot bot commented Mar 13, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/2391

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (1 Unrelated Failure)

As of commit 1708ac7 with merge base 4670211 (image):

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 13, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D54800053

Summary:

Add a buck config option to set the ExecuTorch log level. Used as follows:

`buck2 run ... -c executorch.log_level=[level]`

Where [level] is one of Debug, Info, Error, or Fatal (case-in-sensitive).

Log methods are refactored into a separate bazel file to facilitate re-use. I need to override the XNNPACK log level when ET log level is set to Debug, and I don't want to duplicate the log level parsing logic.

Differential Revision: D54800053
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D54800053

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 624ce59.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants