This project is read-only.

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:

  <configSections>    
    <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" />
    </sectionGroup>
  </configSections>

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:

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


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

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

Comments

No comments yet.