我已经在Azure Web应用程序服务上部署了Python Web应用程序,该服务将输出打印到终端。在这里我可以看到,而无需附加调试器。我的应用程序正在使用此启动命令。
python3.10 -m aiohttp.web -H 0.0.0.0 -P 8000 app:init_func
字符串我只想看看它的输出。
dwbf0jvd1#
发表评论作为答案您可以使用Azure门户中的日志流功能查看应用程序的输出。日志流显示Web应用程序的实时console logs and traces。
console logs and traces
Application Logging
Azure =>App Services
的数据
启动命令:
的
<https://<web_app_name>.azurewebsites.net>
Monitoring=>LogStream
1条答案
按热度按时间dwbf0jvd1#
发表评论作为答案
您可以使用Azure门户中的日志流功能查看应用程序的输出。日志流显示Web应用程序的实时
console logs and traces
。Application Logging
。Azure =>App Services
中打开Web应用程序。Application Logging
设置为文件系统,将其级别设置为信息,如下图所示:的数据
启动命令:
的
<https://<web_app_name>.azurewebsites.net>
。Monitoring=>LogStream
部分的输出日志,您将能够看到startup命令的输出:的