public IConfigurationSettingItem Parse(System.Xml.XmlNode section)
        {
            //logger实现类的类型名称
            var cacheTypeName = section.GetAttributeValue("type");

            if (string.IsNullOrEmpty(cacheTypeName))
            {
                return(null);
            }

            var setting = new MyLoggingSetting();

            setting.Name    = section.GetAttributeValue("node");
            setting.LogType = Type.GetType(cacheTypeName);

            foreach (XmlNode node in section.ChildNodes)
            {
                var appender = ParseLoggingAppender(node);
                if (appender != null)
                {
                    setting.Appenders.Add(appender);
                }
            }

            return(setting);
        }
 void IConfigurationSettingHostService.Attach(IConfigurationSettingItem setting)
 {
     this.setting = (MyLoggingSetting)setting;
 }