public static void SetLoggersFactory(ILoggerFactory loggerFactory) { var factory = (loggerFactory == null || loggerFactory is NoLoggingLoggerFactory) ? null : (INHibernateLoggerFactory) new LegacyLoggerFactoryAdaptor(loggerFactory); NHibernateLogger.SetLoggersFactory(factory); }
public static void SetLoggersFactory(ILoggerFactory loggerFactory) { _legacyLoggerFactory = loggerFactory ?? new NoLoggingLoggerFactory(); if (!(loggerFactory is ReverseLegacyLoggerFactoryAdaptor)) { var factory = loggerFactory == null || loggerFactory is NoLoggingLoggerFactory ? null : (INHibernateLoggerFactory) new LegacyLoggerFactoryAdaptor(loggerFactory); NHibernateLogger.SetLoggersFactory(factory); } }