Top "Ilogger" questions

Use this tag for questions about the ILogger interface in the Microsoft.

How to unit test with ILogger in ASP.NET Core

This is my controller: public class BlogController : Controller { private IDAO<Blog> _blogDAO; private readonly ILogger<BlogController> _…

c# unit-testing asp.net-core moq ilogger
Unable to resolve ILogger from Microsoft.Extensions.Logging

I've configured my console application's Main like so var services = new ServiceCollection() .AddLogging(logging => logging.AddConsole()) .BuildServiceProvider(); And then …

c# .net dependency-injection .net-core ilogger
Manage logging configuration with NLog in .NET Core 3

I'm using NLog in a .NET Core 3.1 worker service application. Following the tutorial of NLog I inserted an nlog.config …

.net-core nlog ilogger