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