静态记录器aspnetcore webapi serilog

时间:2018-06-23 05:34:45

标签: asp.net-core serilog

我即将在我正在编写的某些Web API中实现登录。

默认实现建议在我想使用日志记录的任何地方都需要注入。

静态记录器(serilog)有什么问题,而无需注入到任何地方。

我错过了重点吗?

我确实看到了这个线程(在有人重复之前跳过)

ASP.NET Core Web API Logging from a Static Class

在上述线程中,我看不到如何与serilog集成?

有人实现了serilog静态记录器netcore吗?

谢谢

0 个答案:

没有答案
相关问题