You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by am...@mastek.com on 2004/10/21 14:47:58 UTC

Conditional appenders!!

Is it possible that for this level say fatal I want only email appender
ro be sent
For level error I want to write only to file.....
That is conditional selection of appenders.

Thanks and Regards,
Amit .M. Agarwal



MASTEK
"Making a valuable difference"
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCO

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from all computers.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Re: Conditional appenders!!

Posted by Jeffrey Schoolcraft <je...@gmail.com>.
Sure, check out filters:
http://logging.apache.org/log4net/release/manual/configuration.html#HC-3916302

Jeff


On Thu, 21 Oct 2004 18:17:58 +0530, amitma@mastek.com <am...@mastek.com> wrote:
>  
> 
> Is it possible that for this level say fatal I want only email appender ro
> be sent 
> For level error I want to write only to fileā€¦.. 
> That is conditional selection of appenders. 
> 
> Thanks and Regards, 
> Amit .M. Agarwal 
>  
>  MASTEK
>  "Making a valuable difference"
>  Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
>  In the US, we're called MAJESCO
>  
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>  Opinions expressed in this e-mail are those of the individual and not that
> of Mastek Limited, unless specifically indicated to that effect. Mastek
> Limited does not accept any responsibility or liability for it. This e-mail
> and attachments (if any) transmitted with it are confidential and/or
> privileged and solely for the use of the intended person or entity to which
> it is addressed. Any review, re-transmission, dissemination or other use of
> or taking of any action in reliance upon this information by persons or
> entities other than the intended recipient is prohibited. This e-mail and
> its attachments have been scanned for the presence of computer viruses. It
> is the responsibility of the recipient to run the virus check on e-mails and
> attachments before opening them. If you have received this e-mail in error,
> kindly delete this e-mail from all computers.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>