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
: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
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
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