/// <summary> /// Adds a sublogger to this compound logger /// </summary> /// <param name="logger"></param> public void AddLogger(Logger logger) { // Register it subloggers.Add(logger); // Write the message cache to it foreach (var t in messagecache) logger.Write(t); }
/// <summary> /// Adds a sublogger to this compound logger /// </summary> /// <param name="logger"></param> public void AddLogger(Logger logger) { // Register it subloggers.Add(logger); // Write the message cache to it for (int i = 0; i < messagecache.Count; i++) { logger.Write(messagecache[i]); } }