Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 43214 invoked from network); 17 Jun 2006 18:46:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Jun 2006 18:46:25 -0000 Received: (qmail 1006 invoked by uid 500); 17 Jun 2006 18:46:25 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 584 invoked by uid 500); 17 Jun 2006 18:46:24 -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" List-Id: Delivered-To: mailing list log4net-user@logging.apache.org Received: (qmail 568 invoked by uid 99); 17 Jun 2006 18:46:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Jun 2006 11:46:23 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [68.142.201.239] (HELO web30511.mail.mud.yahoo.com) (68.142.201.239) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 17 Jun 2006 11:46:22 -0700 Received: (qmail 8222 invoked by uid 60001); 17 Jun 2006 18:45:58 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Iy0JSQx/ipzcSQtaKPTMKoeDHShxNjt0h6wBUJeGQfwDX86Nn57d1HLceKHhjFbcTHpggE0NadHQ5PE6Xcof8ymZnlhFIXhG1EcWfCNNn+shFBTEi9heAboqD3rvg6XRd4jpgP+xvBT18GYPf5Ach3K5y9t8G+ZBhYqPz6GavoY= ; Message-ID: <20060617184558.8220.qmail@web30511.mail.mud.yahoo.com> Received: from [65.24.255.41] by web30511.mail.mud.yahoo.com via HTTP; Sat, 17 Jun 2006 11:45:58 PDT Date: Sat, 17 Jun 2006 11:45:58 -0700 (PDT) From: Ron Grabowski Subject: Re: Extending Log4Net To: Log4NET User In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N The SmtpAppender has parameters named "to" and "from": This is what those parameters look like in code on the SmtpAppender class: public string To { get { return m_to; } set { m_to = value; } } public string From { get { return m_from; } set { m_from = value; } } Your SMSAppender should have a public property named SMS_Alert_MobileNumbers: public string SMS_Alert_MobileNumbers { get { return smsAlertMobileNumbers; } set { smsAlertMobileNumbers = value; } } Here's what your config file will look like: The error message you're seeing is log4net telling you its unable to find a property named "SMS_Alert_MobileNumbers" on one of log4net's internal objects. --- TJO wrote: > > > I have reviewed the sample code and am still not understanding how > param's are > entered. My logger requires a custom parameter as shown below: > > type='CustomLog4NetAppenders.SMSAppender, CustomLog4NetAppenders'> > > > > In my Custom Appender class that extends AppenderSkeleton I am lost > on how to > setup and map the param value to my class's properties. When I > executed my code > I see the following error: > > log4net:ERROR XmlHierarchyConfigurator: Cannot find Property > [SMS_Alert_MobileNumbers] to set object on > [log4net.Repository.Hierarchy.DefaultLoggerFactory+LoggerImpl] > > Can someone show me or direct me to somewhere where I can see this > implemented? > > > > >