/// <summary> /// Configure the current <see cref="LogContext"/> using the specified <paramref name="logger"/>, which will be /// used for all log output. /// </summary> /// <param name="logger">An existing logger</param> public static void ConfigureCurrentLogContext(ILogger logger) { Current = new BusLogContext(new SingleLoggerFactory(logger), Cached.Default.Value); }
public static void ConfigureCurrentLogContext(ILoggerFactory loggerFactory = null) { Current = new BusLogContext(loggerFactory ?? NullLoggerFactory.Instance, Cached.Default.Value); }