We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There could be a method to turn on DEBUG log for all commands, like turning on DEBUG log for all PowerShell cmdlets through
$DebugPreference = "Continue"
Currently, CLI can enable log file with logging.enable_log_file (https://docs.microsoft.com/en-us/cli/azure/azure-cli-configuration) which prints all levels of logs.
logging.enable_log_file
core.debug
A config option core.debug can be added, like core.only_show_error. However, there will still be no option to always show INFO logs.
core.only_show_error
core.log_level
--log-level
Like log_cli_level from pytest (https://docs.pytest.org/en/6.2.x/logging.html#live-logs), a more general solution is to add core.log_level config option and --log-level argument which can be set to
log_cli_level
pytest
debug
info
warning
error
This is a superset of
core.only_show_errors
--only-show-errors
core.log_level=error
--log-level error
--debug
core.log_level=debug
--log-level debug
--verbose
core.log_level=info
--log-level info
The text was updated successfully, but these errors were encountered:
Feature Request
Sorry, something went wrong.
jiasli
No branches or pull requests
Context
There could be a method to turn on DEBUG log for all commands, like turning on DEBUG log for all PowerShell cmdlets through
Currently, CLI can enable log file with
logging.enable_log_file
(https://docs.microsoft.com/en-us/cli/azure/azure-cli-configuration) which prints all levels of logs.Proposals
Add
core.debug
config optionA config option
core.debug
can be added, likecore.only_show_error
. However, there will still be no option to always show INFO logs.Add
core.log_level
config option and--log-level
argumentLike
log_cli_level
frompytest
(https://docs.pytest.org/en/6.2.x/logging.html#live-logs), a more general solution is to addcore.log_level
config option and--log-level
argument which can be set todebug
info
warning
error
This is a superset of
core.only_show_errors
/--only-show-errors
(Support --only-show-errors microsoft/knack#179), which is equivalent tocore.log_level=error
/--log-level error
--debug
, which is equivalent tocore.log_level=debug
/--log-level debug
--verbose
, which is equivalent tocore.log_level=info
/--log-level info
References
The text was updated successfully, but these errors were encountered: