小编Ian*_*nro的帖子

阻止 Azure 函数记录“正在执行”和“已执行”消息

当我的 Azure 函数被触发时,它会记录“Executing”和“Executed”消息。这在测试期间很好,但由于此函数被多次触发,它会创建大量不需要的日志消息。我自己添加的日志对我很重要,但我想禁用函数自己的“正在执行”和“已执行”消息。澄清一下,我不想记录以下消息:

Executing ‘MyFunctionName’ (Reason='New ServiceBus message detected……etc’)

Executed ‘MyFunctionName’ (Succeeded, Id=a99c6932-788f-439e-a7db-aad7f607d5ea)
Run Code Online (Sandbox Code Playgroud)

azure azure-functions asp.net-core-2.0

8
推荐指数
1
解决办法
3306
查看次数

标签 统计

asp.net-core-2.0 ×1

azure ×1

azure-functions ×1