zoukankan      html  css  js  c++  java
  • Azure logging

    只有跑在windows上的app才能使用blob storage保持log,在Linux上的只能保持到file system。

    az webapp log config --application-logging true --level verbose --name <app-name> --resource-group <resource-group-name>
    # There is currently no way to disable application logging by using Azure CLI commands; however, the following command resets file system logging to error-level only.
    az webapp log config --application-logging false --name <app-name> --resource-group <resource-group-name>
    # To view the current logging status for an app, use this command.
    az webapp log show --name <app-name> --resource-group <resource-group-name>
    

    要使用blob storage需要storage account,还要生成container。

    # 显示log
    az webapp log tail  --resource-group <resource-group-name> --name <app-name>
    

    下载log

    • az cli
    az webapp log download --log-file contosofashions.zip  --resource-group <resource-group-name> --name <app-name>
    
    • Kudu
      App Services --> Advanced Tools (Development Tools) --> select Go --> Kudu Services window appears --> CMD (Debug console) --> select LogFiles --> Download

    • Azure Blob Storage
      Storage accounts --> Storage Explorer (preview) --> BLOB CONTAINERS --> 选container

    --------------------------- 知道的更多,不知道的也更多 ---------------------------
  • 相关阅读:
    【Scheme归纳】3 比较do, let, loop
    【Scheme归纳】2 算数运算
    【Scheme归纳】1 使用Edwin
    【SICP练习】106 练习3.7
    【SICP练习】105 练习3.5-3.6
    【SICP练习】104 练习3.1-3.4
    【SICP练习】103 练习2.81-2.97
    【SICP练习】102 练习2.79-2.80
    【SICP练习】101 练习2.77-2.78
    【SICP练习】100 练习2.76
  • 原文地址:https://www.cnblogs.com/mryux/p/15322112.html
Copyright © 2011-2022 走看看