logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Peikes" <bpei...@gargoylestrategic.com>
Subject RE: Logging Perf Hit
Date Tue, 16 Nov 2004 16:43:54 GMT
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:dsellers@chinaleads.net] 
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



Mime
View raw message