public Microsoft.Extensions.Logging.ILogger CreateLogger(string categoryName) { LuccaLoggerOptions opt = _options.CurrentValue; var logExtractor = new LogExtractor(_logDetailsExtractors, new EnvironmentDetailsExtractor(opt)); return(new LuccaLogger(categoryName, _httpContextAccessor, LogManager.GetLogger(categoryName), opt, logExtractor, _filters, _exceptionalWrapper, _options.CurrentValue.ApplicationName)); }
public LuccaLogger(string categoryName, IHttpContextParser httpContextAccessor, Logger nloLogger, LuccaLoggerOptions options, LogExtractor logExtractor, IExceptionQualifier filters, IExceptionalWrapper exceptionalWrapper, string appName) { _categoryName = categoryName; _httpContextWrapper = httpContextAccessor; _nloLogger = nloLogger; _logExtractor = logExtractor; _options = options; _filters = filters; _exceptionalWrapper = exceptionalWrapper; _appName = appName; }