コード例 #1
0
 public static void AddNLog(this Microsoft.Extensions.Logging.ILoggerFactory factory, NLogFactory nlogfactory)
 {
     factory.AddProvider(new NLoggerProviderForDI(nlogfactory));
 }
コード例 #2
0
 public NLoggerProviderForDI(NLogFactory factory = null)
 {
     _factory = factory ?? (NLogFactory)LoggerManager.LoggerFactory;
 }