ibatis + log4net 配置

使用这个就可以把结果显示在vs中的控制台。和my eclipse 一样了。

<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>

你可能感兴趣的:(ibatis)