Azure功能应用程序中的问题 [英] Issue in Azure function app
问题描述
嗨所有专家。
hi all Experts.
我正在调用REST api来返回我在本地下载的大型zip文件。然后解压缩并上传到BLOB存储。
I am calling REST api to return large zip file which I download locally. Then unzip it and upload to BLOB storage.
虽然这个工作正常在visual studio本地,当我将它发布到azure功能应用程序时,它无法按预期工作。
While this works fine locally in visual studio, when I publish it to azure function app it doesnt work as expected.
在功能应用程序监控中,它显示应用程序成功运行且未记录任何错误。
in function app monitoring, it shows the app ran successfully with no error logged.
如何排除故障?
How can I troubleshoot this?
我在本地下载文件,解压缩然后上传到BLOB
I am downloading file locally, unzipping it and then uploading to BLOB
为此,我尝试使用 D:/ home 以及 D: / local 文件夹作为azure app上的本地文件夹。
For this , I tried to use D:/home as well as D:/local folder as the local folder on azure app.
可能是什么问题?
What might be the issue?
由于没有显示错误,我想在我的c#代码中添加一些日志记录,可以将日志写入azure功能应用程序。
Since there is no error displayed, i want to add some logging to my c# code which can write logs to azure function app.
任何想法怎么做?我抬头看网,发现我需要添加一些自定义库'nuget但它们都不符合我的要求。
Any idea how to do this? I looked up on the net, found that I need to add some custom library thr' nuget but none of them satisfy my requirement.
我的主要Run函数有Tracewriter logger对象作为parwameter,但我想记录thr'后续的子程序调用。
我怎样才能实现这个目标?
How can I achieve this?
thnaks,
thnaks,
Gopal
Gopal
推荐答案
所有专家。
我正在调用REST api来返回我在本地下载的大型zip文件。然后解压缩并上传到BLOB存储。
I am calling REST api to return large zip file which I download locally. Then unzip it and upload to BLOB storage.
虽然这样可以正常工作在Visual Studio本地,当我将它发布到azure功能应用程序时,它无法按预期工作。
While this works fine locally in visual studio, when I publish it to azure function app it doesnt work as expected.
在功能应用程序监控中,它显示应用程序成功运行且未记录任何错误。
in function app monitoring, it shows the app ran successfully with no error logged.
如何解决此问题?
我正在下载文件本地,解压缩然后上传到BLOB
I am downloading file locally, unzipping it and then uploading to BLOB
为此,我尝试使用D:/ home以及D:/ local文件夹作为azure app上的本地文件夹。
For this , I tried to use D:/home as well as D:/local folder as the local folder on azure app.
可能是什么问题?
由于没有显示错误,我想添加一些记录到我的c#代码可以将日志写入azure功能应用程序。
Since there is no error displayed, i want to add some logging to my c# code which can write logs to azure function app.
任何想法如何做到这一点?我抬头看网,发现我需要添加一些custo m library thr'nuget但它们都不满足我的要求。
Any idea how to do this? I looked up on the net, found that I need to add some custom library thr' nuget but none of them satisfy my requirement.
我的主要Run函数有Tracewriter logger对象作为parwameter,但我想要log thr'后续的子程序调用。
My main Run function has Tracewriter logger object as parwameter, but I want to log thr' the subsequent sub procedure calls.
我该如何实现?
这篇关于Azure功能应用程序中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!