az webapp log
管理 Web 应用日志。
命令
名称 | 说明 | 类型 | Status |
---|---|---|---|
az webapp log config |
为 Web 应用配置日志记录。 |
Core | GA |
az webapp log deployment |
管理 Web 应用部署日志。 |
Core | GA |
az webapp log deployment list |
列出与 Web 应用关联的部署。 |
Core | GA |
az webapp log deployment show |
显示最新部署的部署日志,或指定部署 ID 时的特定部署日志。 |
Core | GA |
az webapp log download |
将 Web 应用的日志历史记录下载为 zip 文件。 |
Core | GA |
az webapp log show |
获取 Web 应用的日志记录配置的详细信息。 |
Core | GA |
az webapp log tail |
启动 Web 应用的实时日志跟踪。 |
Core | GA |
az webapp log config
为 Web 应用配置日志记录。
az webapp log config [--application-logging {azureblobstorage, filesystem, off}]
[--detailed-error-messages {false, true}]
[--docker-container-logging {filesystem, off}]
[--failed-request-tracing {false, true}]
[--ids]
[--level {error, information, verbose, warning}]
[--name]
[--resource-group]
[--slot]
[--subscription]
[--web-server-logging {filesystem, off}]
示例
为 Web 应用配置日志记录。 (autogenerated)
az webapp log config --name MyWebapp --resource-group MyResourceGroup --web-server-logging off
为 Web 应用配置日志记录。 (autogenerated)
az webapp log config --docker-container-logging off --name MyWebapp --resource-group MyResourceGroup
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
配置应用程序日志记录。
属性 | 值 |
---|---|
接受的值: | azureblobstorage, filesystem, off |
配置详细的错误消息。
属性 | 值 |
---|---|
接受的值: | false, true |
配置从容器收集 STDOUT 和 STDERR 输出。
属性 | 值 |
---|---|
接受的值: | filesystem, off |
配置失败的请求跟踪。
属性 | 值 |
---|---|
接受的值: | false, true |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Logging level.
属性 | 值 |
---|---|
接受的值: | error, information, verbose, warning |
Web 应用的名称。 如果未指定,则会随机生成名称。 可以使用 < a0/a0> 配置默认值 az configure --defaults web=<name>
。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
配置 Web 服务器日志记录。
属性 | 值 |
---|---|
接受的值: | filesystem, off |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az webapp log download
将 Web 应用的日志历史记录下载为 zip 文件。
此命令不适用于 Linux 上运行的 Web 应用。
az webapp log download [--ids]
[--log-file]
[--name]
[--resource-group]
[--slot]
[--subscription]
示例
将 Web 应用的日志历史记录下载为 zip 文件。 (autogenerated)
az webapp log download --name MyWebApp --resource-group MyResourceGroup
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
下载的压缩日志文件路径。
属性 | 值 |
---|---|
默认值: | webapp_logs.zip |
Web 应用的名称。 如果未指定,则会随机生成名称。 可以使用 < a0/a0> 配置默认值 az configure --defaults web=<name>
。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az webapp log show
获取 Web 应用的日志记录配置的详细信息。
az webapp log show [--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
示例
获取 Web 应用的日志记录配置的详细信息。 (autogenerated)
az webapp log show --name MyWebApp --resource-group MyResourceGroup
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Web 应用的名称。 如果未指定,则会随机生成名称。 可以使用 < a0/a0> 配置默认值 az configure --defaults web=<name>
。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az webapp log tail
启动 Web 应用的实时日志跟踪。
az webapp log tail [--ids]
[--name]
[--provider]
[--resource-group]
[--slot]
[--subscription]
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Web 应用的名称。 如果未指定,则会随机生成名称。 可以使用 < a0/a0> 配置默认值 az configure --defaults web=<name>
。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
默认情况下,将显示由 az webapp log config
配置的所有实时跟踪,但你可以限定为某些提供程序/文件夹,例如“application”、“http”等。有关详细信息,请查看 https://github.com/projectkudu/kudu/wiki/Diagnostic-Log-Stream。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |