PaulD
02-12-2007, 05:35 PM
Hi,
I just recently upgraded from spring 1.0.1 to spring 1.1.0.2. Before I upgraded spring the log4net logging was working fine. However, I also upgraded from log4net 1.2.9 to 1.2.10 at the same time. The whole reason for this exercise is so that I could use 1.2.10 with iBatis to try and get its logging working. So now the logging for my app works and ibatis logging works but not the logging for spring. I have read the updated 1.1 p3 docs on logging and have added the new section to the web.config for the commons logging. It was very similar to the ibatis commons section that I had to put in their for ibatis.
Here is the relevant section of the web.config:
<common>
<logging>
<factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter , Common.Logging.Log4Net">
<arg key="configType" value="EXTERNAL" />
</factoryAdapter>
</logging>
</common>
<iBATIS>
<logging>
<logFactoryAdapter type="IBatisNet.Common.Logging.Impl.Log4NetLoggerFA, IBatisNet.Common.Logging.Log4Net">
<arg key="configType" value="external" />
</logFactoryAdapter>
</logging>
</iBATIS>
Here are the loggers I have setup in my log4net config file:
<logger name="Spring">
<level value="DEBUG" />
</logger>
<logger name="IBatisNet.DataMapper.Commands.DefaultPreparedComma nd">
<level value="DEBUG" />
</logger>
Does anybody have any suggestions on what is going on here?
Thanks
I just recently upgraded from spring 1.0.1 to spring 1.1.0.2. Before I upgraded spring the log4net logging was working fine. However, I also upgraded from log4net 1.2.9 to 1.2.10 at the same time. The whole reason for this exercise is so that I could use 1.2.10 with iBatis to try and get its logging working. So now the logging for my app works and ibatis logging works but not the logging for spring. I have read the updated 1.1 p3 docs on logging and have added the new section to the web.config for the commons logging. It was very similar to the ibatis commons section that I had to put in their for ibatis.
Here is the relevant section of the web.config:
<common>
<logging>
<factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter , Common.Logging.Log4Net">
<arg key="configType" value="EXTERNAL" />
</factoryAdapter>
</logging>
</common>
<iBATIS>
<logging>
<logFactoryAdapter type="IBatisNet.Common.Logging.Impl.Log4NetLoggerFA, IBatisNet.Common.Logging.Log4Net">
<arg key="configType" value="external" />
</logFactoryAdapter>
</logging>
</iBATIS>
Here are the loggers I have setup in my log4net config file:
<logger name="Spring">
<level value="DEBUG" />
</logger>
<logger name="IBatisNet.DataMapper.Commands.DefaultPreparedComma nd">
<level value="DEBUG" />
</logger>
Does anybody have any suggestions on what is going on here?
Thanks