public ILogger CreateLogger(string categoryName) { if (!_loggers.TryGetValue(categoryName, out ILogger logger)) { var loggerAggregate = new LoggerAggregate { Category = categoryName, MinLevel = GetMinLevel(), Filter = GetFilter(), Loggers = GetLoggers(categoryName) }; logger = new Logger(loggerAggregate); } return(logger); }
public Logger(LoggerAggregate loggerAggregate) { _loggerAggregate = loggerAggregate; }