在Azure持久函数中启用IBM MQ跟踪。

huangapple go评论65阅读模式
英文:

Enable IBM MQ tracing in Azure durable function

问题

我正在尝试在我的Azure可靠函数应用程序(.NET 7,隔离,运行在Windows上)中启用MQ客户端跟踪,但到目前为止我并不成功。

我正在使用IBMMQDotnetClient 9.3.3。

我在应用程序的根目录下放置了一个mqclient.ini文件,其内容如下:

MQDotnetTraceLevel=2
MQDotnetTracePath=C:home\mq_traces
MQDonetErrorPath=C:home\mq_traces_error

并在相应的存储账户中的函数应用程序文件共享中创建了这两个目录。
我无法在这些目录中看到任何文件被创建。

我该如何在Azure函数内使这个.NET客户端的跟踪工作?

英文:

I am trying to enable MQ client tracing in my Azure durable Function App (.NET 7, Isolated, on Windows), but I have not been very successful so far.

I am using IBMMQDotnetClient 9.3.3.

I have placed a mqclient.ini file in the root of the application, with the following contents:

MQDotnetTraceLevel=2
MQDotnetTracePath=C:home\mq_traces
MQDonetErrorPath=C:home\mq_traces_error

and created both directories on my function app file share in the corresponding storage account.
I cannot see any files being created in those directories.

How can I get tracing for this .NET client working inside an Azure function?

答案1

得分: 1

你需要一个Trace段落,像下面这样:

Trace:
   MQDotnetTraceLevel=2
   MQDotnetTracePath=C:home\mq_traces
   MQDonetErrorPath=C:home\mq_traces_error

这在这里有详细说明。

英文:

You need a Trace stanza, like the following:

Trace:
   MQDotnetTraceLevel=2
   MQDotnetTracePath=C:home\mq_traces
   MQDonetErrorPath=C:home\mq_traces_error

This is documented here.

huangapple
  • 本文由 发表于 2023年8月8日 20:41:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/76859679.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定