Log4Net and logging SQL Statements

2006-08-17 Thread Brian Elcock
Hello All. I'm struggling with getting logging setup to log all prepared/executed SQL statements. I am using .NET 1.1, Log4Net 1.2.9.0, IBatisNet.DataMapper 1.3.0.0. I can write to the log just fine from within the application when I'm testing, but I can't get iBatis to log the SQL statements.

Re: Log4Net and logging SQL Statements

2006-08-17 Thread Ron Grabowski
With your current configuration, you're telling your application to look for the log4net configuration in the App/Web.config and for IBatisNet to re-configure log4net from the Log4net.config file. I usually configure log4net from my application and tell IBatisNet to attach itself to that

Re: Log4Net and logging SQL Statements

2006-08-17 Thread Brian Elcock
OK. Thanks. That makes sense. I've updated my configuration to include the external value. Now in my logger config file, I've got this: logger name=IBatisNet.DataMapper.Commands.DefaultPreparedCommand level value=ALL / /logger The