Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 51469 invoked from network); 16 Nov 2004 16:43:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 16 Nov 2004 16:43:58 -0000 Received: (qmail 45521 invoked by uid 500); 16 Nov 2004 16:43:58 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 45503 invoked by uid 500); 16 Nov 2004 16:43:57 -0000 Mailing-List: contact log4net-user-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: "Log4NET User" Delivered-To: mailing list log4net-user@logging.apache.org Received: (qmail 45490 invoked by uid 99); 16 Nov 2004 16:43:57 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_60_70,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [65.112.82.21] (HELO chiunix-smtp.paxclearing.com) (65.112.82.21) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 16 Nov 2004 08:43:57 -0800 Received: from chiunix-smtp.paxclearing.com (localhost [127.0.0.1]) by chiunix-smtp-nonpax.paxclearing.com (Postfix) with ESMTP id 7DBA1613E for ; Tue, 16 Nov 2004 10:43:55 -0600 (CST) Received: from nyexch03.paxapps.corp.paxclearing.com (nyexch03.paxapps.corp.paxclearing.com [172.18.17.23]) by chiunix-smtp.paxclearing.com (Postfix) with ESMTP id 50FEB6110 for ; Tue, 16 Nov 2004 10:43:55 -0600 (CST) Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C4CBFB.75E1D81C" Subject: RE: Logging Perf Hit X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Tue, 16 Nov 2004 11:43:54 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Logging Perf Hit Thread-Index: AcTLX70TRwDf/kEqQ7KRMdgvJklFiQAAbvTQAAAJd2AAAnwMwAAQHDpQABLPtUAAAHsdYAAAWYuwAAAlCqA= From: "Benjamin Peikes" To: "Log4NET User" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C4CBFB.75E1D81C Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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. =20 As for calling Configure, I'm not sure where that goes in an ASP.Net application. =20 Benjamin Peikes=20 Gargoyle Strategic Investments=20 201-227-2209=20 =20 _____ =20 From: Dru Sellers [mailto:dsellers@chinaleads.net]=20 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 =3D = log4net.LogManager.GetLogger(GetType(Verify)) Do I need to do this all the time or is there a way to work around this? =20 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 ------_=_NextPart_001_01C4CBFB.75E1D81C Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
You should make your loggers static, one for = each class. In=20 VB that would be Shared. That way they only get created once for each=20 class.
 
As for calling Configure, I'm not sure where = that goes in=20 an ASP.Net application.
 

Benjamin = Peikes=20
Gargoyle Strategic=20 Investments
201-227-2209

 


From: Dru Sellers=20 [mailto:dsellers@chinaleads.net]
Sent: Tuesday, November 16, = 2004=20 11:39 AM
To: 'Log4NET User'
Subject: Logging Perf=20 Hit

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

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

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

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

------_=_NextPart_001_01C4CBFB.75E1D81C--