Re: Config log4net in n-tiear application Framework 2.0!

2007-10-24 Thread li nan
You can create a common layer dll to be referenced by other all dll files. Then in this common file, there is a public class: public class Log{ private log=ILog.Logger...//Log4Net interface. //open the log interface from here public void DEBUG(string strlog) { log.Debug(str

RE: Config log4net in n-tiear application Framework 2.0!

2007-10-23 Thread Dean Fiala
:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="_=_NextPart_001_01C815CC.5C0026CC" Subject: RE: Config log4net in n-tiear application Framework 2.0! X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Tue, 23 Oct 2007 19:28:03 -0400 Message-ID: <[EMAIL PROTECT

RE: Config log4net in n-tiear application Framework 2.0!

2007-10-23 Thread Walden H. Leverich
m: Dave McEwan [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 23, 2007 5:18 PM To: Log4NET User Subject: RE: Config log4net in n-tiear application Framework 2.0! For each project, reference the log4net dll and put the following line in the assemblyInfo file: [assemb

RE: Config log4net in n-tiear application Framework 2.0!

2007-10-23 Thread Dave McEwan
For each project, reference the log4net dll and put the following line in the assemblyInfo file: [assembly: log4net.Config.XmlConfigurator( ConfigFile="log4net.config",Watch=true )] Now at the class level for each class add the following line to create an instance of the logg