iBATIS.NET Class Library DataMapper V1.6.1, DataAccess V1.9.1

ConfigurationSectionHandler Class

Used in an application's configuration file (App.Config or Web.Config) to configure the logging subsystem.

For a list of all members of this type, see ConfigurationSectionHandler Members.

System.Object
   ConfigurationSectionHandler

[Visual Basic]
Public Class ConfigurationSectionHandler
    Implements IConfigurationSectionHandler
[C#]
public class ConfigurationSectionHandler : IConfigurationSectionHandler

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

An example configuration section that writes IBatisNet messages to the Console using the built-in Console Logger.

[XML]
<configuration>
    <configSections>
        <sectionGroup name="iBATIS">
            <section name="logging" type="IBatisNet.Common.Logging.ConfigurationSectionHandler, IBatisNet.Common" />
        </sectionGroup>    
    </configSections>
    <iBATIS>
        <logging>
            <logFactoryAdapter type="IBatisNet.Common.Logging.Impl.ConsoleOutLoggerFA, IBatisNet.Common">
                <arg key="showLogName" value="true" />
                <arg key="showDataTime" value="true" />
                <arg key="level" value="ALL" />
                <arg key="dateTimeFormat" value="yyyy/MM/dd HH:mm:ss:SSS" />
            </logFactoryAdapter>
        </logging>
    </iBATIS>
</configuration>

The following aliases are recognized for the type attribute of logFactoryAdapter:

CONSOLEAlias for IBatisNet.Common.Logging.Impl.ConsoleOutLoggerFA, IBatisNet.Common
TRACEAlias for IBatisNet.Common.Logging.Impl.TraceLoggerFA, IBatisNet.Common
NOOPAlias IBatisNet.Common.Logging.Impl.NoOpLoggerFA, IBatisNet.Common

Requirements

Namespace: IBatisNet.Common.Logging

Assembly: IBatisNet.Common (in IBatisNet.Common.dll)

See Also

ConfigurationSectionHandler Members | IBatisNet.Common.Logging Namespace