Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有人有幸让他们的天蓝色函数通过 nLog 写入 Logentries?无法在线找到任何示例或文档。我能找到的最接近的是这个例子,但没有考虑 Logentries。
https://github.com/yorek/AzureFunctionNLog
R7Insight.NLog 现在可通过 NetCore 支持获得:
https://www.nuget.org/packages/r7Insight.nlog
迟到总比不到好 :)
这适用于您的场景吗? https://github.com/Azure/azure-webjobs-sdk/issues/506
所以我认为 Serilog 更容易实现,因为它不像 nLog 那样创建或使用配置文件。真正的目标是让我的日志记录到 LogEntries...nLog 是我尝试使用的工具,但我认为 Serilog 更适合天蓝色的功能
https://docs.logentries.com/docs/net-serilog