代码之家  ›  专栏  ›  技术社区  ›  Evan Park

Azure应用程序洞察与Azure功能。日志调试未显示

  •  1
  • Evan Park  · 技术社区  · 7 年前

    我的Azure功能当前正在登录到Application Insights。

    当logger.logInformation行生成的日志显示在Application Insights上时,logger.logDebug行生成的日志不会显示。

    有人能帮我做到这一点或指导我向一些文件?

    谢谢:)

    2 回复  |  直到 7 年前
        1
  •  1
  •   Ivan Glasenberg    7 年前

    具体步骤如下:

    https://your_function_name.scm.azurewebsites.net/DebugConsole

    2.在kudu控制台中,nav to the host.json( D:\home\site\wwwroot ),然后单击host.json的编辑按钮: enter image description here

    3.修改host.json如下,保存: enter image description here

    在代码中使用LogDebug: enter image description here

    在application insights中,检查调试消息: enter image description here

    link 根据@Kath meteon,修改host.json。

        2
  •  2
  •   Katy Shimizu    7 年前

    你在找 logLevel 正在设置 host.json logger 设置。) Documentation for both here.