private void LoadParams() { XmlNodeList rendererList = Log4NetNode.SelectNodes(ParamDescriptor.Param.ElementName); foreach (XmlNode renderer in rendererList) { mMutableChildren.Add(new ParamModel(renderer)); } }
private void LoadRenderers() { XmlNodeList rendererList = Log4NetNode.SelectNodes(RendererDescriptor.Renderer.ElementName); foreach (XmlNode renderer in rendererList) { mMutableChildren.Add(new RendererModel(renderer)); } }
private bool LoadAppenders() { //Only selects appenders under this log4net element XmlNodeList appenderList = Log4NetNode.SelectNodes("appender"); bool unrecognized = false; foreach (XmlNode node in appenderList) { if (AppenderModel.TryCreate(node, Log4NetNode, out AppenderModel model)) { mMutableChildren.Add(model); } else { unrecognized = true; } } return(unrecognized); }