Ejemplo n.º 1
0
 public LoggerMiddleware(RequestDelegate next, ILoggerService loggerService)
 {
     _next   = next;
     _logger = loggerService.CreateLogger <LoggerMiddleware>();
 }
Ejemplo n.º 2
0
 public LoggerWrapper(ILoggerService loggerService, string name, IConfigurationRoot config)
 {
     _logger = loggerService.CreateLogger <LoggerWrapper>();
     _name   = name;
     _config = config;
 }
Ejemplo n.º 3
0
        public HomeController(ILoggerService loggerService)
        {
            _logger = loggerService.CreateLogger <HomeController>();

            _logger.Log("HomeController");
        }