> -----Original Message-----
> From: Morten Andersen [mailto:[EMAIL PROTECTED] 
> Sent: 24 March 2006 19:28
> To: Log4NET Dev
> Subject: Re: Property Name in AppenderSkeleton is not virtual
> 
> I just want to set the File when Name is set I am trying to 
> make my configuration file smaller.
> 
> Now I have allot of appenders with loggers like the one you 
> can see bellow in my configuration file. The appender takes 
> only one line (i have changed the Name to virtual my self to test).
> 
> <appender name="Operator_Test" type="WebHandlerRollingFileAppender"/>

I think you can do this by overriding the ActivateOptions method and
setting updating the File property then.

 

> Another question. Is it possible to add a logger with a 
> appender ref with just one line? 
> 
> Example:
> <logger name="Operator_Test_MO" 
> appender-ref="Operator_Test"/> <logger 
> name="Operator_Test_MTStatus" appender-ref="Operator_Test"/>

No. The <appender-ref> must be specified as a child element. The
intention is to allow zero or more appenders to be referenced, this is
best served by using an element.



Nicko


> 
> - Morten
> 
> Nicko Cadell wrote:
> > what are you trying to do? 
> >
> >   
> >> -----Original Message-----
> >> From: Morten Andersen [mailto:[EMAIL PROTECTED]
> >> Sent: 24 March 2006 17:31
> >> To: [email protected]
> >> Subject: Property Name in AppenderSkeleton is not virtual
> >>
> >> Hi
> >>
> >> Is it possible to change this to virtual? Please?
> >>
> >> --
> >>
> >> Best Regards
> >> *Morten Andersen*
> >> Developer
> >> Vianett AS <http://www.vianett.no/> | [EMAIL PROTECTED] 
> >> <mailto:[EMAIL PROTECTED]> | Office: +47 69 20 69 74 
> >> <callto://+4769206974> | Skype: mortander <callto://mortander>
> >>
> >>
> >>     
> >
> >   
> 
> 

Reply via email to