使用DI指定 ILogger<T> 类型而不是 Logger ,其中 T 是使用记录器的类类型,因此NLog会知道该类。例如: public class TodoController : Controller { private ...
確定! 回上一頁