I had two different versions of log4net in my Project References. A 1.1 and a
1.2 version. I deleted the 1.1 and it all worked fine.
-------Original Message-------
> From: Zarar Siddiqi <[EMAIL PROTECTED]>
> Subject: Read the docs and can't get IBatis to Log statements
> Sent: 14 Aug '05 13:18
>
>
> Currently, I'm doing projects in both C# and Java and in Java, I've gotten
> IBatis to log properly but I can't seem to figure out what is wrong with my
> configuration in .NET as IBatis is refusing to log anything. Following is my
> <log4net> section in my web.config. I can log other stuff using the root
> logger, just can't get IBatis to log anything.
>
> I've enabled logging (I think) for
> IBatisNet.DataMapper.Configuration.Statements.DefaultPreparedCommand as
> suggested in the docs, and i quote:
>
> "To log all Prepared SQL command text, enable the logger for
> IBatisNet.DataMapper.Configuration.Statements.DefaultPreparedCommand. This
> will display the statement, parameters, and parameter types used by the
> DataMapper."
>
> Any help is appreciated.
>
> <log4net>
> <appender name="LogFileAppender" type="log4net.Appender.FileAppender" >
> <param name="File" value="c:/reallytempfile.txt" />
> <param name="AppendToFile" value="true" />
> <layout type="log4net.Layout.PatternLayout">
> <param name="ConversionPattern" value="%d [%t] %-5p %c [%x]
> <%X{auth}> - %m%n"/>
> </layout>
> </appender>
>
> <root>
> <level value="ALL" />
> <appender-ref ref="LogFileAppender" />
> </root>
>
>
> <logger
> name="IBatisNet.DataMapper.Configuration.Statements.DefaultPreparedCommand">
> <level value="ALL" />
> <appender-ref ref="LogFileAppender" />
> </logger>
>
> </log4net>
>
> Thanks,
> Zarar Siddiqi
>
-------Original Message-------