A global context for logger variables
Наследование: IVariablesContext
Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MultiLogger"/> class.
 /// </summary>
 /// <param name="loggers">The loggers.</param>
 public MultiLogger(IEnumerable<ILog> loggers)
 {
     _loggers = loggers.ToList();
     GlobalVariablesContext = new MultiLoggerGlobalVariablesContext(_loggers);
     ThreadVariablesContext = new MultiLoggerThreadVariablesContext(_loggers);
     NestedThreadVariablesContext = new NoOpNestedVariablesContext();
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MultiLogger"/> class.
 /// </summary>
 /// <param name="loggers">The loggers.</param>
 public MultiLogger(IEnumerable <ILog> loggers)
 {
     _loggers = loggers.ToList();
     GlobalVariablesContext       = new MultiLoggerGlobalVariablesContext(_loggers);
     ThreadVariablesContext       = new MultiLoggerThreadVariablesContext(_loggers);
     NestedThreadVariablesContext = new NoOpNestedVariablesContext();
 }