Apprenda.Log4NetConnectorPolicy.Log4NetAppConfigUpdateService.Update C# (CSharp) Method

Update() public method

Updates the XML Application configuration file.
public Update ( ) : IEnumerable
return IEnumerable
        public IEnumerable<string> Update()
        {
            _messages = new List<string>();
            LoadDocument();
            var log4netElement = _document.XPathSelectElement("//log4net");
            if (log4netElement == null)
            {
                AddIgnoredConfigSection();
                log4netElement = this.AddLog4NetElement();
            }

            LogElementWorker.UpdateLoggingElement(log4netElement);

            SaveDocument();
            return _messages;
        }