诊断日志链接已禁用 [英] Diagnostics Logs Link Disabled

查看:76
本文介绍了诊断日志链接已禁用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我已经创建了一个以Docker容器发布的Azure功能应用程序(即OS = Linux,Publish ='Docker Image'),其中相应的Docker映像托管在Azure容器注册表中.

I have created a Azure Function App that is published as a Docker Container (i.e, OS=Linux, Publish='Docker Image'), where corresponding the docker image is hosted on Azure Container Registry.

我一直试图找到一个地方来查看由应用程序内的函数生成的日志消息.我注意到诊断日志"我的应用程序设置中的链接被禁用.同样在kudu上/home/LogFiles/的日志文件中(< app_name> .scm.azurewebsites.net/), 我看到以下消息:

I have been trying to find a place to view the log messages generated from functions within the app. I noticed that "Diagnostics logs" link in my applications settings is disabled. Also in the log files from /home/LogFiles/ on kudu (<app_name>.scm.azurewebsites.net/), I see messages such as:

2018-10-09 05:14:50.993 INFO - Logging is not enabled for this container. Please use https://aka.ms/linux-diagnostics to enable logging to see container logs here.

有人可以建议我如何启用该应用的日志记录,以便可以找到从我的函数生成的日志消息(在容器中运行)吗?

Can anyone advise me on how do I enable logging for the app so that log messages generated from my functions (running within the container) can be found?

谢谢.

推荐答案

此帖子的副本:https://social.msdn.microsoft.com/Forums/en-US/03b084e0-ff8f-45da-aa6b-ac2975431850/docker-app-diagnostics-logs-link-disabled?forum = AzureFunctions


这篇关于诊断日志链接已禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆