C# Class Apprenda.Log4NetConnectorPolicy.Log4NetAppConfigUpdateService

The log 4 net app config update service.
Show file Open project: apprenda/Log4Net-Onboarder Class Usage Examples

Public Methods

Method Description
Log4NetAppConfigUpdateService ( string path ) : System

Initializes a new instance of the Log4NetAppConfigUpdateService class.

Update ( ) : IEnumerable

Updates the XML Application configuration file.

Private Methods

Method Description
AddIgnoredConfigSection ( ) : void

Analyze the configuration file and add the log4net config section declaration before injecting a log4net configuration section, if needed.

AddLog4NetElement ( ) : System.Xml.Linq.XElement

The add default logging element.

LoadDocument ( ) : void

Attempt to load the configuration file

SaveDocument ( ) : void

Save the configuration file.

Method Details

Log4NetAppConfigUpdateService() public method

Initializes a new instance of the Log4NetAppConfigUpdateService class.
/// If path is null or empty. ///
public Log4NetAppConfigUpdateService ( string path ) : System
path string /// The path. ///
return System

Update() public method

Updates the XML Application configuration file.
public Update ( ) : IEnumerable
return IEnumerable