internal Logger(CentralLogger commonLogger, IDictionary <string, string> loggerContext) { _centralLogger = commonLogger; if (loggerContext != null) { foreach (var kvp in loggerContext) { LoggerContext.Add(kvp.Key, kvp.Value); } } }
/// <summary> /// Constructs the object. /// </summary> public LoggingBuilder() { // Pass the instances of these collections so the central logger can use them, but they // remain here so the user can edit them. _centralLogger = new CentralLogger(LogProviders, AppContext); }