logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pascal ROZE" <pascal.r...@gmail.com>
Subject Re: CustomAppender and property
Date Tue, 16 Dec 2008 14:13:38 GMT
Do you know in what class/function this job is done in log4net sources?

2008/12/16 Ron Grabowski <rongrabowski@yahoo.com>

> Log4net uses reflection to look see if the xml node name matches a public
> property on your object.
>
> ------------------------------
> *From:* Pascal ROZE <pascal.roze@gmail.com>
> *To:* log4net-user@logging.apache.org
> *Sent:* Tuesday, December 16, 2008 4:44:42 AM
> *Subject:* CustomAppender and property
>
> Hi all
>
> I'm developping my own appender.
> Looking at some examples in the Net, I've found how to create property, I
> just have to use the same name in appender file and config file.
>
>  - In the config file:
> <myProperty value="HelloWorld" />
>
>  - In the appender file:
> private string m_myproperty
> public string MyProperty
> {
>     get { returm m_myproperty; }
>     set { m_mypropery = value; }
> }
>
> I was wondering how it works but I didn't find the class/function in
> log4net sources.
>
> Can anyone help me?
>
> Thx a lot
>
> Cheers
> Pascal
>
>

Mime
View raw message