For spring.NET integration and log4net configuration, few lines of code should be added to the App.Config file. Spring.NET and log4net sections we be created as shown bellow:

    <section name="log4net" type="System.Configuration.IgnoreSectionHandler" />
    <sectionGroup name="spring">
      <section name="context" type="Spring.Context.Support.ContextHandler, Spring.Core" />
      <section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core" />

The next step is to allow Spring.NET to retrieve spring files (created in the last section) by configuration. The following shows to configuration to adds to your App.Config file:

    <context type="Spring.Context.Support.XmlApplicationContext, Spring.Core">
      <resource uri="./../../config/spring/spring-ContactManager_CONTROLLERS.xml" />

For log4net, if you want to see log message coming from the framework koossery.MVCwin you just have to configure a logger "Koossery.MVCwin" . See below for a sample:

<logger name="Koossery.MVCwin">
      <level value=here you put the level of severity />
      <appender-ref ref= here you put a ref to the appender/>

Last edited Jun 22, 2009 at 8:41 AM by koossery, version 2


No comments yet.