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