NET Logging Library
ConfigurationXml Property (Log)
Example 



KellermanSoftware.NetLoggingLibrary Namespace > Log Class : ConfigurationXml Property
Get or set the configuration by serialized XML
Syntax
Public Shared Property ConfigurationXml As String
Dim value As String
 
Log.ConfigurationXml = value
 
value = Log.ConfigurationXml
public static string ConfigurationXml {get; set;}
public:
static property String^ ConfigurationXml {
   String^ get();
   void set (    String^ value);
}
Example
//Licensed Mode
//Log.UserName = "User Name From Receipt";
//Log.LicenseKey = "LicenseKey From Receipt";  
 
XmlDocument document = new XmlDocument();
document.LoadXml(Log.ConfigurationXml);
document.Save("configuration.xml");            
 
document.Load("configuration.xml");
            
Log.ConfigurationXml = document.OuterXml;
Console.WriteLine(Log.ConfigurationXml);
'Licensed Mode
'Log.UserName = "User Name From Receipt";
'Log.LicenseKey = "LicenseKey From Receipt";  
 
Dim document As New XmlDocument()
document.LoadXml(Log.ConfigurationXml)
document.Save("configuration.xml")
 
document.Load("configuration.xml")
 
Log.ConfigurationXml = document.OuterXml
Console.WriteLine(Log.ConfigurationXml)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Log Class
Log Members