Heres is a sample:

<logging>
            <logFactoryAdapter
type="IBatisNet.Common.Logging.Impl.TraceLoggerFA, IBatisNet.Common">
                <arg key="logLevel" value="All"/>
                <arg key="showDateTime" value="true"/>
                <arg key="showLogName" value="true"/>
            </logFactoryAdapter>
</logging>

    <system.diagnostics>
        <trace autoflush="true">
            <listeners>
                <add name="textWriterTraceListener"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="Unit:\\Directory\\TheLoggingFile.txt"/>
            </listeners>
        </trace>
    </system.diagnostics>

Greetings!


On Sun, Nov 16, 2008 at 6:01 PM, dcyphr88 <[EMAIL PROTECTED]> wrote:

>
> I'm trying to use one of the built in loggers so I can see the SQL
> statements
> performed on the database, but I don't know where the logging file gets
> outputted. I followed this
> http://ibatis.apache.org/docs/dotnet/datamapper/ch04s05.html and put this
> in
> my Web.config:
>
> <configuration>
>  <configSections>
>  <sectionGroup name="iBATIS">
>   <section name="logging"
> type="IBatisNet.Common.Logging.ConfigurationSectionHandler,
> IBatisNet.Common" />
>  </sectionGroup>
>  </configSections>
>  <iBATIS>
>  <logging>
>   <logFactoryAdapter type="IBatisNet.Common.Logging.Impl.ConsoleLoggerFA,
> IBatisNet.Common.Logging" />
>  </logging>
>  </iBATIS>
> </configuration>
>
> Is there something I'm missing because I don't know what this is doing (I
> couldn't find new files anywhere)? Also is there a preference for which
> built-in logger to use (NoOpLogger, ConsoleOutLogger, TraceLogger)? Thanks
> for any help.
> --
> View this message in context:
> http://www.nabble.com/How-to-specify-logging-output-file--tp20529993p20529993.html
> Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.
>
>


-- 
Juan Pablo Araya
Egresado Mg. Cs. Ing. Inf. & Ing Civil informática
Universidad Técnica Federico Santa María

Reply via email to