Hi Henry I wasn't talking about assembly.cs file. I was talking about .NET assembly. Anywhere in your code you can put this. Also look for tutorial project in log4net site also You can google for "log4net initialization".
Brian Choi -----Original Message----- From: Henry Lu [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 18, 2006 8:51 AM To: [email protected] Subject: Re: Log4net... Good tip. But i am using web asp.net, there is no assembly.cs file. How do I configure it in my code? -Henry Choi, Brian wrote: >Hi Henry. > >Did you call configuration init like below? > > XmlConfigurator.Configure(); > >I put this in executing assembly (for me it was unit test assembly). >It would initialize log4net module according to xml config. > >Brian Choi > > >-----Original Message----- >From: Henry Lu [mailto:[EMAIL PROTECTED] >Sent: Wednesday, October 18, 2006 5:23 AM >To: [email protected] >Subject: Re: Log4net... > >Are there any one having answer of this? Are there anyone using the same > >platform as I am using? > >Windows server 2003 >SQL Server 2003 >Visual Stedio .Net Framework 2005 >Web application asp.net 2.0 >Log4net >Ibatis.datamapper > >Can some one post a working configuration example? > >-Henry > >Ron Grabowski wrote: > > > >>Did Don's post help resolve your problem? >> >>----- Original Message ---- >>From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> >>To: [email protected]; Ron Grabowski <[EMAIL PROTECTED]> >>Sent: Saturday, October 14, 2006 1:56:28 PM >>Subject: Log4net... >> >>I copied and pasted configuration in the ibatis sqlmapper document for >>logging but I didn't get anything in the log file about SQL statements >>and IBATIS. I am using VS2005 .NET 2 and log4net for log. What should i >> >> > > > >>do to log all SQL statement in the log file? Should I call some >>functions? objects? ... >> >>-Henry >> >> >> >> >> >> >> >> >> > > > > >

