Title: Message

As for calling Configure, I'm not sure where that goes in an ASP.Net application.

 

You can either call configure manually in the app_start code or you can assign an assembly attribute to handle the configuration call for you.  For asp.net apps this seems to works well for me.

 

Rich Denis
perotsystems\


From: Benjamin Peikes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 16, 2004 10:44 AM
To: Log4NET User
Subject: RE: Logging Perf Hit

 

You should make your loggers static, one for each class. In VB that would be Shared. That way they only get created once for each class.

 

As for calling Configure, I'm not sure where that goes in an ASP.Net application.

 

Benjamin Peikes
Gargoyle Strategic Investments
201-227-2209

 

 


From: Dru Sellers [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 16, 2004 11:39 AM
To: 'Log4NET User'
Subject: Logging Perf Hit

In my ASP.Net pages I am doing this in about every method


log4net.Config.DOMConfigurator.Configure(New IO.FileInfo(file))
Dim log As log4net.ILog = log4net.LogManager.GetLogger(GetType(Verify))

Do I need to do this all the time or is there a way to work around this?

 

Dru

 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.794 / Virus Database: 538 - Release Date: 11/10/2004

Reply via email to