public NLogFacade(ILogEventInfoFactory logEventInfoFactory) { ConfigurationItemFactory.Default.Targets.RegisterDefinition("RedisList", typeof(RedisListTarget)); ConfigurationItemFactory.Default.Targets.RegisterDefinition("RedisChannel", typeof(RedisChannelTarget)); _logEventInfoFactory = logEventInfoFactory; _logger = LogManager.GetCurrentClassLogger(); }
public LogManager(ILogEventInfoFactory logEventInfoFactory) { _logEventInfoFactory = logEventInfoFactory.CheckNotNull(nameof(logEventInfoFactory)); }