无法在Azure Blob存储中找到我的应用程序日志 [英] Cannot find my application logs in Azure Blob Storage

查看:68
本文介绍了无法在Azure Blob存储中找到我的应用程序日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我有一个简单的Spring Boot应用程序,它作为WAR文件部署到Windows App Service。该应用程序生成一个azurefileapp.log日志文件。我可以在D:\ home \site\wwwroot \ LogFiles \ azurefileapp.log下看到此日志文件。但是,我无法在blob中的任何地方找到
这个文件。我已将诊断日志配置为发送到Blob(应用程序和服务器日志)。我在那里得到的日志很少,但我猜它们是由服务器和应用程序生成的。我无法在Blob中找到任何
的日志或日志文件。

I have a simple Spring Boot application that is deployed to a Windows App Service as a WAR file. The application generates a azurefileapp.log log file. I can see this log file under D:\home\site\wwwroot\LogFiles\azurefileapp.log. However, I cannot find this file anywhere in the blob. I have configured the diagnostic logs to be sent to Blob (both the application and server logs). I get few logs there, but they are generated by the server and application I guess. I am not able to find my logs or log file any where in the Blob.

我还使用cmd"az webapp log download"下载了日志。在powershell中。在那里,我也无法看到我的日志文件。

I also downloaded the logs using the cmd "az webapp log download" in the powershell. There too, I was not able to see my log file.

我在代码中使用org.slf4j.Logger logger来生成日志。并使用logger.info和logger.debug将log msgs写入文件。

I am using org.slf4j.Logger logger in the code to generate the logs. And using logger.info and logger.debug to write log msgs to the file.

任何人都可以帮助我吗?

Can anyone help me here?

推荐答案

您好Omkar,

Hi Omkar,

是否已为天数设置保留政策? 如果你没有设置它然后它不会记录,但不会给你一个错误说....我以前见过。

Has a retention policy been set for the number of days?  If you dont set this then it wont log but wont give you an error to say that....I've seen that before.

我假设你已经检查了位置设置blob日志是你在寻找的地方?

I assume you've checked that the location set for blob logs is where you are looking?

谢谢,

马特


这篇关于无法在Azure Blob存储中找到我的应用程序日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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