Ejemplo n.º 1
0
 public static void AddNLog(this Microsoft.Extensions.Logging.ILoggerFactory factory, NLogFactory nlogfactory)
 {
     factory.AddProvider(new NLoggerProviderForDI(nlogfactory));
 }
Ejemplo n.º 2
0
 public NLoggerProviderForDI(NLogFactory factory = null)
 {
     _factory = factory ?? (NLogFactory)LoggerManager.LoggerFactory;
 }