Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
 public static void ConfigureCurrentLogContext(ILoggerFactory loggerFactory = null)
 {
     Current = new BusLogContext(loggerFactory ?? NullLoggerFactory.Instance, Cached.Default.Value);
 }