[英]Logging To Logentries via Nlog in an Azure Function
Has anyone had any luck getting their azure function to write to Logentries via nLog? 有没有人有幸通过nLog将他们的azure函数写入Logentries? Haven't been able to find any samples or docs online.
无法在线查找任何样本或文档。 Closest thing I could find was this example but doesn't take into account Logentries.
我能找到的最近的东西就是这个例子,但没有考虑到Logentries。
https://github.com/yorek/AzureFunctionNLog https://github.com/yorek/AzureFunctionNLog
Would this work for your scenario? 这适用于您的场景吗? https://github.com/Azure/azure-webjobs-sdk/issues/506
https://github.com/Azure/azure-webjobs-sdk/issues/506
So I decided Serilog was much easier to implement since it doesn't create or use config files like nLog does. 所以我认为Serilog更容易实现,因为它不会像nLog那样创建或使用配置文件。 The real goal was to get my logs to LogEntries...nLog was the tool I was trying to use to do it but Serilog turned out to be better for azure functions in my opinion
真正的目标是将我的日志记录到LogEntries ... nLog是我尝试使用的工具但是我认为Serilog对于azure函数更好
https://docs.logentries.com/docs/net-serilog https://docs.logentries.com/docs/net-serilog
R7Insight.NLog is now available with NetCore-support: R7Insight.NLog现在支持NetCore:
https://www.nuget.org/packages/r7Insight.nlog https://www.nuget.org/packages/r7Insight.nlog
Better late than never :) 迟到总比不到好 :)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.