Thanks for the help!
 
Looking through the iBATIS test project is quite interesting - thanks
for that suggestion.
 
Actually, I think my problem with logging and NUnit may have been my
misunderstanding of NUnit (and I'm not sure I understand yet).  When I
got things set up just as the iBatis test project had, I still wasn't
getting log output.  It was only when I closed and re-opened my NUnit
GUI that I started getting something.
 
Russell.


________________________________

        From: Gilles Bayon [mailto:[EMAIL PROTECTED] 
        Sent: Wednesday, November 07, 2007 11:04 PM
        To: [email protected]
        Subject: Re: Enabling logging in NUnit
        
        
        You have 2 solutions,
        - create an app.config in your test porject with this content

        <?xml version="1.0" encoding="utf-8" ?>
        <configuration>
         <!-- Register a section handler for the log4net section -->
         <configSections>
          <sectionGroup name="iBATIS"> 
           <section name="logging"
type="IBatisNet.Common.Logging.ConfigurationSectionHandler,
IBatisNet.Common" />
          </sectionGroup> 
         </configSections>

         <iBATIS>
           <logging>

             <logFactoryAdapter
type="IBatisNet.Common.Logging.Impl.ConsoleOutLoggerFA,
IBatisNet.Common">
            <arg key="showLogName" value="true" />
            <arg key="showDataTime" value="true" /> 
            <arg key="level" value="ALL" />
            <arg key="dateTimeFormat" value="yyyy/MM/dd HH:mm:ss:SSS" />
           </logFactoryAdapter> 
              
          </logging> 
         </iBATIS>
           
        </configuration>

        or create an an MyNamespace.Test.dll.config in the bin/debug of
your test project.
        You can have a look a the ibatis test project
         
        Cheers,
        Gilles
        
        <a href="http://www.amazon.com/gp/registry/6JCP7AORB0LE";>Wish
List</a> 

Reply via email to