Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: How do i load a custom parameter?: msg#00036

apache.logging.log4cxx.user

Subject: RE: How do i load a custom parameter?

There’s another method you have to override, something like setOptions(String name, String value).  You compare the name string to the property name you want to set, and if they match (usually converting both to upper or lower case), convert the property string to the correct representation (i.e., make it an int) and assign it.  This can be found all over the place.

 

Tom Hawker

Office    408–576–6591

PCS       913–488–0796


From: Kadarkarai, Prabhakar (Prabhakar) [mailto:prabhakark@xxxxxxxxx]
Sent: Monday, January 17, 2005 03:03 PM
To: log4cxx-user@xxxxxxxxxxxxxxxxxx
Subject: How do i load a custom parameter?

 

Hello All,

 

In a custom appender I would like to add few custom parameters and get it loaded when the appender loads.  I have defined all the parameters in the XML configuration file like "<param name=3D"Path" value=3D"drprabhakar-a0/private$/RemoteMSMQ" />". When I am trying to = load the appender I got the appender loaded but no properties loaded. I have defined set/get methods in my custom appender file which is shown below. How do I get this working? Should I need to call any MACRO to get the parameter loading?

 

Thanks,

PK

 

void MSMQAppender::setPath(BSTR pathVal)

{

  this->pathName = pathVal;

}

BSTR MSMQAppender::getPath()

{

   return this->pathName;

}

 


IMPORTANT NOTICE
Email from OOCL is confidential and may be legally privileged. If it is not intended for you, please delete it immediately unread. The internet cannot guarantee that this communication is free of viruses, interception or interference and anyone who communicates with us by email is taken to accept the risks in so doing. Without limitation, OOCL and its affiliates accept no liability whatsoever and howsoever arising in connection with the use of this email. Under no circumstances shall this email constitute a binding agreement to carry or for provision of carriage services by OOCL, which is subject to the availability of carrier's equipment and vessels and the terms and conditions of OOCL's standard bill of lading which is also available at http://www.oocl.com.
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation