Config File

Here is an example of an AsapSettings.exe.config file.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
        <section name="enterpriselibrary.configuratioSettings" type="Microsoft.Practices.EnterpriseLibrary.Configuraton.ConfigurationManagerSectionHandler, Microsoft.Practices.EnterpriseLibrary.Configuration" />
        <section name="log4net" type="System.Configuration.IgnoreSectionHandler" />
    </configSections>
    <enterpriselibrary.configurationSettings xmlns:xd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        applicationName="Application" xmlns="http://www.microsoft.com/practices/enterpriselibrary/08-31-2004/configuration">
        <configurationSections>
            <configurationSection name="AsapSettings" encrypt="false">
                <storageProvder xsi:type="XmlFileStorageProviderData" name="XML File Storage Provider" path="AsapSettings.config" />
                <dataTransformer xsi:type="XmlSerializerTransformerData" name="Xml Serializer Transformer">
                    <includeTypes />
                </dataTransformer>
            </configurationSection>
            <configurationSection xsi:type="ReadOnlyConfigurationSectionData" name="securityConfiguration" encrypt="false">
                <storageProvider xsi:ype="XmlFileStorageProviderData" name="XML File Storage Provider" path="securityConfiguration.config" />
                <dataTransformer xsi:type="XmlSerializerTransformerData" name="Xml Serializer Transformer">
                    <includeTypes />
                </dataTransformer>
            </configurationSection>
        </configurationSections>
        <keyAlgorithmStorageProvider xsi:nil="true" />
        <includeTypes />
    </enterpriselibrary.configurationSettings>
    <appSettings>
        <add key="CZ.Advantages.Asap.Sharepoint.ListsWebService.Lists" value="http://companyweb/_vti_bin/Lists.asmx" />
    </appSettings>
    <!-- logging configuration -->
    <log4net>
        <!-- ConsoleAppender will send the logs to the Output pad -->
        <appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
            <layout type="log4net.Layout.PatternLayout">
                <conversionPattern value="%-5level %logger - %message%newline" />
            </layout>
        </appender>
        <appender name="WorkflowConsoleAppender" type="log4net.Appender.ConsoleAppender">
            <layout type="log4net.Layout.PatternLayout">
                <conversionPattern value="%message%newline" />
            </layout>
        </appender>
        <appender name="RuleConsoleAppender" type="log4net.Appender.ConsoleAppender">
            <layout type="log4net.Layout.PatternLayout">
                <conversionPattern value="Rule: %message%newline" />
            </layout>
        </appender>
        <root>
            <level value="INFO" />
            <appender-ref ref="ConsoleAppender" />
        </root>
        <logger name="CZ.Advantages.Asap.Workbench.Services" additivity="false">
            <level value="DEBUG" />
            <appender-ref ref="WorkflowConsoleAppender" />
        </logger>
        <logger name="CZ.Advantages.Asap.Workflow" additivity="false">
            <level value="DEBUG" />
            <appender-ref ref="WorkflowConsoleAppender" />
        </logger>
        <logger name="CZ.Advantages.Asap.Rule" additivity="false">
            <level value="DEBUG" />
            <appender-ref ref="RuleConsoleAppender" />
        </logger>
    </log4net>
</configuration>