public LoggerMiddleware(RequestDelegate next, ILoggerService loggerService) { _next = next; _logger = loggerService.CreateLogger <LoggerMiddleware>(); }
public LoggerWrapper(ILoggerService loggerService, string name, IConfigurationRoot config) { _logger = loggerService.CreateLogger <LoggerWrapper>(); _name = name; _config = config; }
public HomeController(ILoggerService loggerService) { _logger = loggerService.CreateLogger <HomeController>(); _logger.Log("HomeController"); }