Example Configuration File
You can add configuration information to the configuration file using the appSettings and add elements. Here is an example:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="server" value="localhost" />
<add key="logfile" value="c:\PhonebookObj.log" />
<add key="namespace" value="USER" />
<add key="user" value="_SYSTEM" />
<add key="pwd" value="SYS" />
<add key="logging" value="yes" />
<add key="port" value="1972"/>
</appSettings>
</configuration>
Notice that there is an add element containing a key attribute with value logging and a value attribute with value yes. This element can be used to dynamically enable and disable logging.